Commit 3dae0454 by ibaker Committed by marcbaechinger

Deflake ClippedPlaybackTest

PiperOrigin-RevId: 362298115
parent 39e6f665
...@@ -82,6 +82,7 @@ public final class ClippedPlaybackTest { ...@@ -82,6 +82,7 @@ public final class ClippedPlaybackTest {
playbackEnded.block(); playbackEnded.block();
getInstrumentation().runOnMainSync(() -> player.get().release()); getInstrumentation().runOnMainSync(() -> player.get().release());
getInstrumentation().waitForIdleSync();
assertThat(Iterables.getOnlyElement(Iterables.concat(textOutput.cues)).text.toString()) assertThat(Iterables.getOnlyElement(Iterables.concat(textOutput.cues)).text.toString())
.isEqualTo("This is the first subtitle."); .isEqualTo("This is the first subtitle.");
} }
...@@ -135,6 +136,7 @@ public final class ClippedPlaybackTest { ...@@ -135,6 +136,7 @@ public final class ClippedPlaybackTest {
playbackEnded.block(); playbackEnded.block();
getInstrumentation().runOnMainSync(() -> player.get().release()); getInstrumentation().runOnMainSync(() -> player.get().release());
getInstrumentation().waitForIdleSync();
assertThat(Iterables.getOnlyElement(Iterables.concat(textOutput.cues)).text.toString()) assertThat(Iterables.getOnlyElement(Iterables.concat(textOutput.cues)).text.toString())
.isEqualTo("This is the first subtitle."); .isEqualTo("This is the first subtitle.");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment