1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-08 00:16:09 +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 @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);