BIT-2150: Incorrect default timeout (#1197)

This commit is contained in:
Ramsey Smith 2024-04-01 10:41:29 -06:00 committed by Álison Fernandes
parent 07ddb71cfc
commit 4e2fe8c501
2 changed files with 2 additions and 2 deletions

View file

@ -323,7 +323,7 @@ class SettingsRepositoryImpl(
override fun setDefaultsIfNecessary(userId: String) { override fun setDefaultsIfNecessary(userId: String) {
// Set Vault Settings defaults // Set Vault Settings defaults
if (!isVaultTimeoutActionSet(userId = userId)) { if (!isVaultTimeoutActionSet(userId = userId)) {
storeVaultTimeout(userId, VaultTimeout.ThirtyMinutes) storeVaultTimeout(userId, VaultTimeout.FifteenMinutes)
storeVaultTimeoutAction(userId, VaultTimeoutAction.LOCK) storeVaultTimeoutAction(userId, VaultTimeoutAction.LOCK)
} }
} }

View file

@ -78,7 +78,7 @@ class SettingsRepositoryTest {
// Calling once sets values // Calling once sets values
assertEquals( assertEquals(
30, 15,
fakeSettingsDiskSource.getVaultTimeoutInMinutes(userId = userId), fakeSettingsDiskSource.getVaultTimeoutInMinutes(userId = userId),
) )
assertEquals( assertEquals(