From 067712f5994d900796da0758e4ed830e9c3a4591 Mon Sep 17 00:00:00 2001 From: bachinger Date: Thu, 1 Oct 2020 14:34:50 +0100 Subject: [PATCH] Fix flaky test PiperOrigin-RevId: 334801561 --- .../test/java/com/google/android/exoplayer2/ExoPlayerTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/test/java/com/google/android/exoplayer2/ExoPlayerTest.java b/library/core/src/test/java/com/google/android/exoplayer2/ExoPlayerTest.java index a1b3b9014d9..4c64ffd781f 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/ExoPlayerTest.java +++ b/library/core/src/test/java/com/google/android/exoplayer2/ExoPlayerTest.java @@ -6902,6 +6902,7 @@ public void removeMediaItems_currentItemRemovedThatIsTheLast_correctMasking() th ActionSchedule actionSchedule = new ActionSchedule.Builder(TAG) .waitForPlaybackState(Player.STATE_READY) + .waitForPendingPlayerCommands() .executeRunnable( new PlayerRunnable() { @Override