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

Commit 40c08a83 authored by Kihong Seong's avatar Kihong Seong
Browse files

Add line to wait for looper in MapClientStateMachineTest#setUp

Bug: 271209233
Test: atest BluetoothInstrumentationTests
Change-Id: I8f08b950408f15f750bd491ed9ecee6076a2c530
parent 89caf445
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -176,6 +176,7 @@ public class MapClientStateMachineTest {
        when(mMockMasClient.makeRequest(any(Request.class))).thenReturn(true);
        mMceStateMachine = new MceStateMachine(mMockMapClientService, mTestDevice, mMockMasClient,
                mMockDatabase);
        TestUtils.waitForLooperToFinishScheduledTask(mMceStateMachine.getHandler().getLooper());
        Assert.assertNotNull(mMceStateMachine);
        if (Looper.myLooper() == null) {
            Looper.prepare();