Skip to content

Commit

Permalink
Ensure unmockk static is called in test teardown (#4142)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-livefront authored Oct 23, 2024
1 parent fa24824 commit 51c8762
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -116,6 +117,7 @@ class AuthenticatorBridgeRepositoryTest {
@AfterEach
fun teardown() {
confirmVerified(authRepository, vaultSdkSource, vaultRepository, vaultDiskSource)
unmockkStatic(SyncResponseJson.Cipher::toEncryptedSdkCipher)
}

@Test
Expand Down

0 comments on commit 51c8762

Please sign in to comment.