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

Commit 08946f9d authored by Johannes Gallmann's avatar Johannes Gallmann Committed by Android (Google) Code Review
Browse files

Merge "Fix WindowOnBackInvokedDispatcherTest flake" into main

parents dcb7cdae f44dd5ea
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -561,10 +561,12 @@ public class WindowOnBackInvokedDispatcherTest {
        waitForIdle();
        onBackCancelledCalled.await(1000, TimeUnit.MILLISECONDS);

        verify(mWindowSession, timeout(1000)).setOnBackInvokedCallbackInfo(Mockito.eq(mWindow),
                isNull());
        waitForIdle();
        // verify that onBackCancelled is called exactly once in this case
        assertEquals(0, onBackCancelledCalled.getCount());
        assertEquals(0, onBackInvokedCalled.get());
        verify(mWindowSession).setOnBackInvokedCallbackInfo(Mockito.eq(mWindow), isNull());
        assertFalse(mDispatcher.mProgressAnimator.isBackAnimationInProgress());
    }