Count down three playback states to match the assertion

PiperOrigin-RevId: 648629427
This commit is contained in:
bachinger 2024-07-02 01:26:22 -07:00 committed by Copybara-Service
parent 7fb6eee920
commit ec3a58f8db

View File

@ -240,7 +240,7 @@ public class MediaControllerCompatCallbackWithMediaSessionTest {
@Test
public void sendError_toAllControllers_onPlaybackStateChangedToErrorStateAndWithCorrectErrorData()
throws Exception {
CountDownLatch latch = new CountDownLatch(2);
CountDownLatch latch = new CountDownLatch(3);
List<PlaybackStateCompat> playbackStates = new ArrayList<>();
MediaControllerCompat.Callback callback =
new MediaControllerCompat.Callback() {
@ -301,7 +301,7 @@ public class MediaControllerCompatCallbackWithMediaSessionTest {
public void
sendError_toMediaNotificationController_onPlaybackStateChangedToErrorStateAndWithCorrectErrorData()
throws Exception {
CountDownLatch latch = new CountDownLatch(2);
CountDownLatch latch = new CountDownLatch(3);
List<PlaybackStateCompat> playbackStates = new ArrayList<>();
MediaControllerCompat.Callback callback =
new MediaControllerCompat.Callback() {