1
0
Fork 0
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:
Andre Rosado 2025-01-27 11:49:02 +00:00
parent 2f50ceac29
commit d9937e3a5b
No known key found for this signature in database
GPG key ID: 99F68267CCD45AA9
2 changed files with 2 additions and 2 deletions
app/src/test/java/com/x8bit/bitwarden/data
auth/datasource/disk/util
vault/manager

View file

@ -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])
}

View file

@ -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(),
)