From 51c87625cb85161fa6c26865dbadb2ac812ed728 Mon Sep 17 00:00:00 2001 From: David Perez Date: Wed, 23 Oct 2024 11:18:45 -0500 Subject: [PATCH] Ensure unmockk static is called in test teardown (#4142) --- .../platform/repository/AuthenticatorBridgeRepositoryTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/test/java/com/x8bit/bitwarden/data/platform/repository/AuthenticatorBridgeRepositoryTest.kt b/app/src/test/java/com/x8bit/bitwarden/data/platform/repository/AuthenticatorBridgeRepositoryTest.kt index 0f2f4c8424b..5bb97ec79d5 100644 --- a/app/src/test/java/com/x8bit/bitwarden/data/platform/repository/AuthenticatorBridgeRepositoryTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/data/platform/repository/AuthenticatorBridgeRepositoryTest.kt @@ -22,6 +22,7 @@ import io.mockk.confirmVerified import io.mockk.every import io.mockk.mockk import io.mockk.mockkStatic +import io.mockk.unmockkStatic import io.mockk.verify import kotlinx.coroutines.async import kotlinx.coroutines.flow.MutableStateFlow @@ -116,6 +117,7 @@ class AuthenticatorBridgeRepositoryTest { @AfterEach fun teardown() { confirmVerified(authRepository, vaultSdkSource, vaultRepository, vaultDiskSource) + unmockkStatic(SyncResponseJson.Cipher::toEncryptedSdkCipher) } @Test