Skip to content

Commit

Permalink
Fix flaky ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
StaehliJ committed Mar 19, 2024
1 parent 97a4591 commit a877097
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,14 +372,16 @@ class MediaItemTrackerTest {
}

TestPlayerRunHelper.runUntilPlaybackState(player, Player.STATE_READY)
TestPlayerRunHelper.runUntilTimelineChanged(player)

fakeClock.advanceTime(FakeAssetLoader.NEAR_END_POSITION_MS)
TestPlayerRunHelper.runUntilPlaybackState(player, Player.STATE_ENDED)

TestPlayerRunHelper.runUntilPendingCommandsAreFullyHandled(player)

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

0 comments on commit a877097

Please sign in to comment.