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

Commit b75df726 authored by Riley Jones's avatar Riley Jones
Browse files

Fixing flake in PolicyWarningUIControllerTest

Disabling notifications posts a message, so we call #waitForIdleSync() to make sure the change applies.

Test: atest PolicyWarningUIControllerTest
Flag: EXEMPT test fix
Bug: 440955435
Change-Id: I802846fb40361beedf45fde0bb2d313679213b82
parent c39538c7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -129,6 +129,7 @@ public class PolicyWarningUIControllerTest {
    public void receiveActionSendNotification_sendNotificationDisabled_doNothing() {
        mPolicyWarningUIController.enableSendingNonA11yToolNotification(false);
        addEnabledServiceInfo(TEST_COMPONENT_NAME, false);
        getInstrumentation().waitForIdleSync();

        mFakeNotificationController.onReceive(mContext,
                PolicyWarningUIController.createIntent(mContext, TEST_USER_ID,