diff --git a/vector/src/test/java/im/vector/app/features/crypto/quads/SharedSecureStorageViewModelTest.kt b/vector/src/test/java/im/vector/app/features/crypto/quads/SharedSecureStorageViewModelTest.kt index 18666152327..fc4197e07ad 100644 --- a/vector/src/test/java/im/vector/app/features/crypto/quads/SharedSecureStorageViewModelTest.kt +++ b/vector/src/test/java/im/vector/app/features/crypto/quads/SharedSecureStorageViewModelTest.kt @@ -43,7 +43,7 @@ class SharedSecureStorageViewModelTest { val mvrxTestRule = MvRxTestRule() private val stringProvider = FakeStringProvider() - private val session = FakeSession() + private val fakeSession = FakeSession() val args = SharedSecureStorageActivity.Args(keyId = null, emptyList(), "alias") @Test @@ -164,7 +164,7 @@ class SharedSecureStorageViewModelTest { return SharedSecureStorageViewModel( SharedSecureStorageViewState(args), stringProvider.instance, - session + fakeSession ) } @@ -175,15 +175,15 @@ class SharedSecureStorageViewModelTest { step = step, activeDeviceCount = 0, showResetAllAction = false, - userId = "" + userId = fakeSession.myUserId ) private fun givenKey(keyInfo: KeyInfo) { givenHasAccessToSecrets() - session.fakeSharedSecretStorageService._defaultKey = KeyInfoResult.Success(keyInfo) + fakeSession.fakeSharedSecretStorageService._defaultKey = KeyInfoResult.Success(keyInfo) } private fun givenHasAccessToSecrets() { - session.fakeSharedSecretStorageService.integrityResult = IntegrityResult.Success(passphraseBased = IGNORED_PASSPHRASE_INTEGRITY) + fakeSession.fakeSharedSecretStorageService.integrityResult = IntegrityResult.Success(passphraseBased = IGNORED_PASSPHRASE_INTEGRITY) } }