You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unflake MediaControllerListenerTest and MediaBrowserListenerTest
Addressing flakiness of `recursiveChangesFromListeners_reportConsistentValuesForAllListeners` and
`onEvents_whenNewCommandIsCalledInsideOnEvents_isCalledFromNewLooperIterationSet`
The test did not have any way to avoid that events are added to the list
to assert after the count down latch was counted down. This created either
failing asserts or a `ConcurrentModificationException`. Making sure to not
produce further events or to not add further events to the data structure
that is later used for asserting fixes the problem.
PiperOrigin-RevId: 786257610
Copy file name to clipboardExpand all lines: libraries/test_session_current/src/androidTest/java/androidx/media3/session/MediaControllerListenerTest.java
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3931,9 +3931,14 @@ public void onShuffleModeEnabledChanged(boolean shuffleModeEnabled) {
0 commit comments