Skip to content

Commit 7603bb0

Browse files
committed
unmockkAll for each test
1 parent fff2ce1 commit 7603bb0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/core/credentials/ToolkitAuthManagerTest.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import io.mockk.mockk
1313
import io.mockk.mockkObject
1414
import io.mockk.mockkStatic
1515
import io.mockk.runs
16+
import io.mockk.unmockkAll
1617
import io.mockk.verify
18+
import org.junit.jupiter.api.AfterEach
1719
import org.junit.jupiter.api.Assertions.assertEquals
1820
import org.junit.jupiter.api.BeforeEach
1921
import org.junit.jupiter.api.Test
@@ -63,6 +65,11 @@ class ToolkitAuthManagerTest {
6365
resetNetworkErrorState()
6466
}
6567

68+
@AfterEach
69+
fun tearDown() {
70+
unmockkAll()
71+
}
72+
6673
@Test
6774
fun `test NEEDS_REFRESH state with network error - first occurrence`() {
6875
every { tokenProvider.state() } returns BearerTokenAuthState.NEEDS_REFRESH

0 commit comments

Comments
 (0)