mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-26 07:30:19 +00:00
Avoid remove in teardown of testUploadFileNotFound
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ public class UploadFileTest extends ActivityInstrumentationTestCase2<TestActivit
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
if (mUploadedFilePath != null) {
|
if (mUploadedFilePath != null && !mUploadedFilePath.equals(FILE_NOT_FOUND_PATH)) {
|
||||||
RemoteOperationResult removeResult = mActivity.removeFile(mUploadedFilePath);
|
RemoteOperationResult removeResult = mActivity.removeFile(mUploadedFilePath);
|
||||||
if (!removeResult.isSuccess()) {
|
if (!removeResult.isSuccess()) {
|
||||||
Utils.logAndThrow(LOG_TAG, removeResult);
|
Utils.logAndThrow(LOG_TAG, removeResult);
|
||||||
|
|||||||
Reference in New Issue
Block a user