mirror of
https://github.com/bitwarden/android.git
synced 2026-11-19 17:40:12 -06:00
BIT-2256: Clear pending admin request when request is completed (#1284)
This commit is contained in:
committed by
Álison Fernandes
parent
e69ef60f53
commit
4ac9d05036
@@ -300,16 +300,20 @@ class AuthRequestManagerTest {
|
||||
)
|
||||
.test {
|
||||
assertEquals(CreateAuthRequestResult.Update(authRequest), awaitItem())
|
||||
fakeAuthDiskSource.assertPendingAuthRequest(
|
||||
userId = USER_ID,
|
||||
pendingAuthRequest = PendingAuthRequestJson(
|
||||
requestId = authRequestResponseJson.id,
|
||||
requestPrivateKey = authRequestResponse.privateKey,
|
||||
),
|
||||
)
|
||||
assertEquals(CreateAuthRequestResult.Expired, awaitItem())
|
||||
fakeAuthDiskSource.assertPendingAuthRequest(
|
||||
userId = USER_ID,
|
||||
pendingAuthRequest = null,
|
||||
)
|
||||
awaitComplete()
|
||||
}
|
||||
fakeAuthDiskSource.assertPendingAuthRequest(
|
||||
userId = USER_ID,
|
||||
pendingAuthRequest = PendingAuthRequestJson(
|
||||
requestId = authRequestResponseJson.id,
|
||||
requestPrivateKey = authRequestResponse.privateKey,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
@Suppress("MaxLineLength")
|
||||
|
||||
Reference in New Issue
Block a user