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

Commit 6926437d authored by Ivan Chiang's avatar Ivan Chiang
Browse files

Fix flaky test with enabling virtual sd card fail

Test: atest DocumentsUIGoogleTests
Bug: 142621665
Change-Id: Iccb9e16650963c792d83c4fd89c43e5c2f6c7300
Merged-In: Iccb9e16650963c792d83c4fd89c43e5c2f6c7300
(cherry picked from commit 49f44124)
parent 5d29a018
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -137,12 +137,6 @@ public class FileCopyUiTest extends ActivityTest<FilesActivity> {
            Log.d(TAG, "Cannot set notification access. ", e);
        }

        IntentFilter filter = new IntentFilter();
        filter.addAction(TestNotificationService.ACTION_OPERATION_RESULT);
        context.registerReceiver(mReceiver, filter);
        context.sendBroadcast(new Intent(
                TestNotificationService.ACTION_CHANGE_EXECUTION_MODE));

        mOperationExecuted = false;
        mErrorReason = "No response from Notification";

@@ -156,6 +150,12 @@ public class FileCopyUiTest extends ActivityTest<FilesActivity> {
            // Call initStorageRootInfo() again for setting SD Card root
            initStorageRootInfo();
        }

        IntentFilter filter = new IntentFilter();
        filter.addAction(TestNotificationService.ACTION_OPERATION_RESULT);
        context.registerReceiver(mReceiver, filter);
        context.sendBroadcast(new Intent(
                TestNotificationService.ACTION_CHANGE_EXECUTION_MODE));
    }

    @Override