Ensure unmockk static is called in test teardown (#4142)

This commit is contained in:
David Perez 2024-10-23 11:18:45 -05:00 committed by GitHub
parent fa248243b6
commit 51c87625cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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