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

Commit 4eca227a authored by Ivan Chiang's avatar Ivan Chiang Committed by android-build-merger
Browse files

Fix flaky test with enabling virtual sd card fail am: 6926437d

am: c05c867d

Change-Id: If295a135b54d0c5a22bc612c837445816444d723
parents c8d8bc37 c05c867d
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