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

Commit 2636b691 authored by Hall Liu's avatar Hall Liu Committed by Automerger Merge Worker
Browse files

Merge "Fix race condition in CARSM unit tests" am: ff43d889

Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1679712

Change-Id: Id899db8de58fb27dcf3f3cbfe5d77454adde02e8
parents 099613d3 ff43d889
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -276,6 +276,10 @@ public class CallAudioRouteStateMachineTest extends TelecomTestCase {

        waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT);
        verifyNewSystemCallAudioState(initState, expectedMidState);
        // clear out the handler state before resetting mocks in order to avoid introducing a
        // CallAudioState that has a null list of supported BT devices
        waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT);
        waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT);
        resetMocks();

        // Now, switch back to BT explicitly