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

Commit c05c867d 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

Change-Id: Ib390be7d21be58b3295dbd9720c09dda57fa8551
parents e010a371 6926437d
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