Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1564e8c authored by David A. Velasco's avatar David A. Velasco
Browse files

Avoid remove in teardown of testUploadFileNotFound

parent 5f11b3d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);