mirror of
https://github.com/bitwarden/android.git
synced 2025-02-23 00:59:16 +03:00
changed test name to a more fitting one
This commit is contained in:
parent
2f50ceac29
commit
d9937e3a5b
2 changed files with 2 additions and 2 deletions
app/src/test/java/com/x8bit/bitwarden/data
|
@ -484,7 +484,7 @@ class FakeAuthDiskSource : AuthDiskSource {
|
|||
/**
|
||||
* Assert that the [lastLockTimestamp] was stored successfully using the [userId].
|
||||
*/
|
||||
fun assertNotNullLastLockTimestamp(userId: String, expectedValue: Instant?) {
|
||||
fun assertLastLockTimestamp(userId: String, expectedValue: Instant?) {
|
||||
assertEquals(expectedValue, storedLastLockTimestampState[userId])
|
||||
}
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ class VaultLockManagerTest {
|
|||
vaultLockManager.vaultStateEventFlow.test {
|
||||
vaultLockManager.lockVault(userId = USER_ID)
|
||||
assertEquals(VaultStateEvent.Locked(userId = USER_ID), awaitItem())
|
||||
fakeAuthDiskSource.assertNotNullLastLockTimestamp(
|
||||
fakeAuthDiskSource.assertLastLockTimestamp(
|
||||
userId = USER_ID,
|
||||
FIXED_CLOCK.instant(),
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue