Skip to content

Commit

Permalink
Clear mocks as the last step of @AfterTest
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Dec 19, 2024
1 parent ed8c423 commit 481a6bd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ class CommandersActTrackerIntegrationTest {

@AfterTest
fun tearDown() {
clearAllMocks()
player.release()
shadowOf(Looper.getMainLooper()).idle()
clearAllMocks()
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ class ComScoreTrackerIntegrationTest {

@AfterTest
fun tearDown() {
clearAllMocks()
player.release()
shadowOf(Looper.getMainLooper()).idle()
clearAllMocks()
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ class MetricsCollectorTest {

@AfterTest
fun tearDown() {
clearAllMocks()
player.release()
shadowOf(Looper.getMainLooper()).idle()
clearAllMocks()
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ class PlaybackSessionManagerTest {

@AfterTest
fun tearDown() {
clearAllMocks()
player.release()
shadowOf(Looper.getMainLooper()).idle()
clearAllMocks()
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ class MonitoringTest {

@AfterTest
fun tearDown() {
clearAllMocks()
player.release()
shadowOf(Looper.getMainLooper()).idle()
clearAllMocks()
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class MediaItemTrackerTest {

@AfterTest
fun releasePlayer() {
clearAllMocks()
player.release()
shadowOf(Looper.getMainLooper()).idle()
clearAllMocks()
}

@Test
Expand Down

0 comments on commit 481a6bd

Please sign in to comment.