Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a0d7571 authored by Hall Liu's avatar Hall Liu Committed by Gerrit Code Review
Browse files

Merge "Speculative fix for flaky CallAudioRouteStateMachine tests"

parents c51fcb97 5dba9513
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.app.NotificationManager;
import android.content.Context;
import android.media.AudioManager;
import android.media.IAudioService;
import android.os.Handler;
import android.telecom.CallAudioState;
import android.test.suitebuilder.annotation.LargeTest;
import android.test.suitebuilder.annotation.MediumTest;
@@ -988,6 +989,8 @@ public class CallAudioRouteStateMachineTest
            verify(mMockInterruptionFilterProxy, never()).setInterruptionFilter(anyInt());
        }

        Handler h = stateMachine.getHandler();
        waitForHandlerAction(h, TEST_TIMEOUT);
        stateMachine.quitStateMachine();

        // Verify interactions with the speakerphone and bluetooth systems