1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Avoid remove in teardown of testUploadFileNotFound

This commit is contained in:
David A. Velasco 2014-11-11 14:19:37 +01:00
parent 5f11b3d998
commit c1564e8c38

View File

@ -115,7 +115,7 @@ public class UploadFileTest extends ActivityInstrumentationTestCase2<TestActivit
@Override
protected void tearDown() throws Exception {
if (mUploadedFilePath != null) {
if (mUploadedFilePath != null && !mUploadedFilePath.equals(FILE_NOT_FOUND_PATH)) {
RemoteOperationResult removeResult = mActivity.removeFile(mUploadedFilePath);
if (!removeResult.isSuccess()) {
Utils.logAndThrow(LOG_TAG, removeResult);