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

Commit 653c53fd authored by Colin Cross's avatar Colin Cross Committed by Automerger Merge Worker
Browse files

Merge "[flexiglass] Fixes failing test after coroutine lib upgrade." into...

Merge "[flexiglass] Fixes failing test after coroutine lib upgrade." into udc-dev-plus-aosp am: 37d19d55

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24248988



Change-Id: I707237e8c8e4c0febed68516dc11dcd9f3b7dec7
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 8f7e6ea5 37d19d55
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -86,6 +86,22 @@ class AuthenticationInteractorTest : SysuiTestCase() {
            underTest.biometricUnlock()
            runCurrent()

            // Toggle isUnlocked, twice.
            //
            // This is done because the underTest.isUnlocked flow doesn't receive values from
            // just changing the state above; the actual isUnlocked state needs to change to
            // cause the logic under test to "pick up" the current state again.
            //
            // It is done twice to make sure that we don't actually change the isUnlocked
            // state from what it originally was.
            utils.authenticationRepository().setUnlocked(
                !utils.authenticationRepository().isUnlocked.value
            )
            runCurrent()
            utils.authenticationRepository().setUnlocked(
                !utils.authenticationRepository().isUnlocked.value
            )
            runCurrent()
            assertThat(isUnlocked).isTrue()
        }