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:
parent
5f11b3d998
commit
c1564e8c38
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user