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

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

Merge "Fix race condition in CARSM unit tests"

parents 2a81f7cc 514e4dbe
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