mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Deflake ClippedPlaybackTest
PiperOrigin-RevId: 362298115
This commit is contained in:
parent
39e6f665a7
commit
3dae045487
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