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

Commit 79514707 authored by Matt Pietal's avatar Matt Pietal
Browse files

KeyguardViewMediatorTest - Flaky test fix

Keep new test changes isolated to the new test to avoid disruption
to the existing tests

Fixes: 196295234
Test: atest KeyguardViewMediatorTest

Change-Id: Ia7706ce8b3923c1bf4fccd3f15edf97c60893472
(cherry picked from commit d4f5bde1)
parent e421c1c2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

@RunWith(AndroidTestingRunner.class)
@TestableLooper.RunWithLooper(setAsMainLooper = true)
@TestableLooper.RunWithLooper
@SmallTest
public class KeyguardViewMediatorTest extends SysuiTestCase {
    private KeyguardViewMediator mViewMediator;
@@ -126,7 +126,6 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
                mUnlockedScreenOffAnimationController,
                () -> mNotificationShadeDepthController);
        mViewMediator.start();
        mViewMediator.onSystemReady();
    }

    @Test
@@ -165,8 +164,10 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
    }

    @Test
    @TestableLooper.RunWithLooper(setAsMainLooper = true)
    public void restoreBouncerWhenSimLockedAndKeyguardIsGoingAway() {
        // When showing and provisioned
        mViewMediator.onSystemReady();
        when(mUpdateMonitor.isDeviceProvisioned()).thenReturn(true);
        mViewMediator.setShowingLocked(true);