mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Change equalTo check in ImagePlaybackTest to atLeast
The aim of this test is to make sure the image is onscreen for the right amount of time, so to drive down flakes from the decoder taking too long, change this to an atLeast check #minor-release PiperOrigin-RevId: 570988044 (cherry picked from commit 9cc75ca52e49792bed43e4d8fbf67b9a0576fdc0)
This commit is contained in:
parent
3c414fcde4
commit
a4582be2c1
@ -100,7 +100,7 @@ public class ImagePlaybackTest {
|
||||
TestPlayerRunHelper.runUntilPlaybackState(player, Player.STATE_ENDED);
|
||||
long playbackDurationMs = clock.elapsedRealtime() - playerStartedMs;
|
||||
player.release();
|
||||
assertThat(playbackDurationMs).isEqualTo(totalDurationMs);
|
||||
assertThat(playbackDurationMs).isAtLeast(totalDurationMs);
|
||||
DumpFileAsserts.assertOutput(
|
||||
applicationContext,
|
||||
playbackOutput,
|
||||
|
Loading…
x
Reference in New Issue
Block a user