Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
StaehliJ committed Feb 12, 2024
1 parent 8b710b3 commit b77d12b
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,15 +571,9 @@ class MediaItemTrackerTest {
}

TestPlayerRunHelper.runUntilPlaybackState(player, Player.STATE_READY)
// player.seekTo(8_000) // Near the end of the media
runUntilMediaItemTransition(player)
// Wait second item is playing
val waitToPosition = player.currentPosition + 1000
RobolectricUtil.runMainLooperUntil {
player.currentPosition >= waitToPosition
}
TestPlayerRunHelper.runUntilTimelineChanged(player)

verifyAll {
verifyOrder {
fakeMediaItemTracker.start(any(), FakeMediaItemTracker.Data(firstMediaId))
fakeMediaItemTracker.stop(any(), MediaItemTracker.StopReason.EoF, any())
fakeMediaItemTracker.start(any(), FakeMediaItemTracker.Data(secondMediaId))
Expand Down

0 comments on commit b77d12b

Please sign in to comment.