From 6d146cddca5ec0d94977349f02a4dfb06f2ef36e Mon Sep 17 00:00:00 2001 From: Jorge Antonio Diaz-Benito Soriano Date: Tue, 2 Jul 2024 13:37:43 +0200 Subject: [PATCH] MF-171: Fix return types This makes the IDE complain, which is annoying when looking at actual problems. --- .../player/playbackengine/ExoPlayerPlaybackEngineTest.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/player/playback-engine/src/test/kotlin/com/tidal/sdk/player/playbackengine/ExoPlayerPlaybackEngineTest.kt b/player/playback-engine/src/test/kotlin/com/tidal/sdk/player/playbackengine/ExoPlayerPlaybackEngineTest.kt index ba640e41..e39b3456 100644 --- a/player/playback-engine/src/test/kotlin/com/tidal/sdk/player/playbackengine/ExoPlayerPlaybackEngineTest.kt +++ b/player/playback-engine/src/test/kotlin/com/tidal/sdk/player/playbackengine/ExoPlayerPlaybackEngineTest.kt @@ -278,7 +278,9 @@ internal class ExoPlayerPlaybackEngineTest { } @Test - fun loadShouldSetCorrectPropertiesAndPreparePlayerWithCorrectMediaSource() = runBlocking { + fun loadShouldSetCorrectPropertiesAndPreparePlayerWithCorrectMediaSource() { + whenever(initialExtendedExoPlayer.load(any())) doReturn mediaSource + playbackEngine.load(forwardingMediaProduct.delegate) assertThat(playbackEngine.mediaProduct).isEqualTo(forwardingMediaProduct.delegate) @@ -291,7 +293,7 @@ internal class ExoPlayerPlaybackEngineTest { } @Test - fun nextShouldDoNothingIfPlaybackStateIsIdle() = runBlocking { + fun nextShouldDoNothingIfPlaybackStateIsIdle() { playbackEngine.setNext(forwardingMediaProduct.delegate) verify(initialExtendedExoPlayer, never())