diff --git a/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/tracker/commandersact/CommandersActTrackerIntegrationTest.kt b/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/tracker/commandersact/CommandersActTrackerIntegrationTest.kt index b32e2030a..820c58860 100644 --- a/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/tracker/commandersact/CommandersActTrackerIntegrationTest.kt +++ b/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/tracker/commandersact/CommandersActTrackerIntegrationTest.kt @@ -80,9 +80,9 @@ class CommandersActTrackerIntegrationTest { @AfterTest fun tearDown() { - clearAllMocks() player.release() shadowOf(Looper.getMainLooper()).idle() + clearAllMocks() } @Test diff --git a/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/tracker/comscore/ComScoreTrackerIntegrationTest.kt b/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/tracker/comscore/ComScoreTrackerIntegrationTest.kt index a20d35174..5d0ecdf64 100644 --- a/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/tracker/comscore/ComScoreTrackerIntegrationTest.kt +++ b/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/tracker/comscore/ComScoreTrackerIntegrationTest.kt @@ -67,9 +67,9 @@ class ComScoreTrackerIntegrationTest { @AfterTest fun tearDown() { - clearAllMocks() player.release() shadowOf(Looper.getMainLooper()).idle() + clearAllMocks() } @Test diff --git a/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/analytics/MetricsCollectorTest.kt b/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/analytics/MetricsCollectorTest.kt index ba4e240ab..1b063ebbd 100644 --- a/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/analytics/MetricsCollectorTest.kt +++ b/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/analytics/MetricsCollectorTest.kt @@ -49,9 +49,9 @@ class MetricsCollectorTest { @AfterTest fun tearDown() { - clearAllMocks() player.release() shadowOf(Looper.getMainLooper()).idle() + clearAllMocks() } @Test diff --git a/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/analytics/PlaybackSessionManagerTest.kt b/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/analytics/PlaybackSessionManagerTest.kt index e7d427cd4..d75928e83 100644 --- a/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/analytics/PlaybackSessionManagerTest.kt +++ b/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/analytics/PlaybackSessionManagerTest.kt @@ -50,9 +50,9 @@ class PlaybackSessionManagerTest { @AfterTest fun tearDown() { - clearAllMocks() player.release() shadowOf(Looper.getMainLooper()).idle() + clearAllMocks() } @Test diff --git a/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/monitoring/MonitoringTest.kt b/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/monitoring/MonitoringTest.kt index 440b84956..6c42459de 100644 --- a/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/monitoring/MonitoringTest.kt +++ b/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/monitoring/MonitoringTest.kt @@ -48,9 +48,9 @@ class MonitoringTest { @AfterTest fun tearDown() { - clearAllMocks() player.release() shadowOf(Looper.getMainLooper()).idle() + clearAllMocks() } @Test diff --git a/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/tracker/MediaItemTrackerTest.kt b/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/tracker/MediaItemTrackerTest.kt index bf4d2d4dc..b2b0d700c 100644 --- a/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/tracker/MediaItemTrackerTest.kt +++ b/pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/tracker/MediaItemTrackerTest.kt @@ -43,9 +43,9 @@ class MediaItemTrackerTest { @AfterTest fun releasePlayer() { - clearAllMocks() player.release() shadowOf(Looper.getMainLooper()).idle() + clearAllMocks() } @Test