From 21e39e6a6e261799f9caf12eea3831f278171775 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 17c935ed..874a369e 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 @@ -274,7 +274,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) @@ -287,7 +289,7 @@ internal class ExoPlayerPlaybackEngineTest { } @Test - fun nextShouldDoNothingIfPlaybackStateIsIdle() = runBlocking { + fun nextShouldDoNothingIfPlaybackStateIsIdle() { playbackEngine.setNext(forwardingMediaProduct.delegate) verify(initialExtendedExoPlayer, never())