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

Commit a8857077 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Use the correct way to init SmsBroadcastUndelivered in tests

Change-Id: I8f02f12886277fe110615fe808f743d6e8ade363
parent 4d08cf9c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -171,9 +171,8 @@ public class CdmaInboundSmsHandlerTest {
        assertEquals("StartupState", getCurrentState().getName());

        // start SmsBroadcastUndelivered thread to trigger transition to IdleState
        Thread broadcastThread = new Thread(new SmsBroadcastUndelivered(
                mContextFixture.getTestDouble(), null, mCdmaInboundSmsHandler));
        broadcastThread.start();
        SmsBroadcastUndelivered.initialize(mContextFixture.getTestDouble(), null,
                mCdmaInboundSmsHandler);
        TelephonyTestUtils.waitForMs(50);

        assertEquals("IdleState", getCurrentState().getName());