Skip to content

Commit

Permalink
Fix return types
Browse files Browse the repository at this point in the history
This makes the IDE complain, which is annoying when looking at actual problems.
  • Loading branch information
stoyicker committed Jul 4, 2024
1 parent b5534b3 commit d860d92
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,15 @@ internal class ExoPlayerPlaybackEngineTest {
}

@Test
fun loadShouldSetCorrectPropertiesAndPreparePlayerWithCorrectMediaSource() = runBlocking {
playbackEngine.load(forwardingMediaProduct.delegate)
fun loadShouldSetCorrectPropertiesAndPreparePlayerWithCorrectMediaSource() {
runBlocking {
withTimeout(8.seconds) {
playbackEngine.events.filter { it is Event.MediaProductTransition }.first()
}
launch {
playbackEngine.load(forwardingMediaProduct.delegate)
}
}

assertThat(playbackEngine.mediaProduct).isEqualTo(forwardingMediaProduct.delegate)
assertThat(playbackEngine.testNextMediaSource).isEqualTo(null)
Expand All @@ -287,7 +294,7 @@ internal class ExoPlayerPlaybackEngineTest {
}

@Test
fun nextShouldDoNothingIfPlaybackStateIsIdle() = runBlocking {
fun nextShouldDoNothingIfPlaybackStateIsIdle() {
playbackEngine.setNext(forwardingMediaProduct.delegate)

verify(initialExtendedExoPlayer, never())
Expand Down

0 comments on commit d860d92

Please sign in to comment.