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

Commit c1082a7f authored by David Duarte's avatar David Duarte
Browse files

MapClientStateMachineTest: Send correct message in testReceiveEmptyEvent

The notification variable was unused, according to the comment it seems that the message that should be sent is the notification and not MSG_MAS_CONNECTED

Bug: 344658662
Test: m BluetoothInstrumentationTests
Flag: TEST_ONLY
Change-Id: I5357c2df5f7b8b9ca90b96a2b083e02f92973fab
parent 784ead99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -362,7 +362,7 @@ public class MapClientStateMachineTest {

        // Send an empty notification event, verify the mMceStateMachine is still connected
        Message notification = Message.obtain(mHandler, MceStateMachine.MSG_NOTIFICATION);
        mMceStateMachine.getCurrentState().processMessage(msg);
        mMceStateMachine.getCurrentState().processMessage(notification);
        Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState());
    }