mirror of
https://github.com/samsonjs/media.git
synced 2026-04-20 13:45:47 +00:00
Deflake ClippedPlaybackTest
PiperOrigin-RevId: 362298115
This commit is contained in:
parent
9d2d334091
commit
962e686045
1 changed files with 2 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ public final class ClippedPlaybackTest {
|
|||
playbackEnded.block();
|
||||
|
||||
getInstrumentation().runOnMainSync(() -> player.get().release());
|
||||
getInstrumentation().waitForIdleSync();
|
||||
assertThat(Iterables.getOnlyElement(Iterables.concat(textOutput.cues)).text.toString())
|
||||
.isEqualTo("This is the first subtitle.");
|
||||
}
|
||||
|
|
@ -135,6 +136,7 @@ public final class ClippedPlaybackTest {
|
|||
playbackEnded.block();
|
||||
|
||||
getInstrumentation().runOnMainSync(() -> player.get().release());
|
||||
getInstrumentation().waitForIdleSync();
|
||||
assertThat(Iterables.getOnlyElement(Iterables.concat(textOutput.cues)).text.toString())
|
||||
.isEqualTo("This is the first subtitle.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue