Skip to content

Commit 2912fb3

Browse files
committed
MultiplexBluetoothTransportTest testStateTransitions only check state if device is not an emulator, New emulator actually works, so to prevent incompatibility with older emulators only check on actual devices
1 parent fd5eab8 commit 2912fb3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

android/sdl_android/src/androidTest/java/com/smartdevicelink/test/transport/MultiplexBluetoothTransportTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ public void handleMessage(Message msg) {
5252
assertEquals(bluetooth.getState(), MultiplexBluetoothTransport.STATE_NONE);
5353

5454
bluetooth.start();
55-
if (DeviceUtil.isEmulator()) {
56-
assertEquals(bluetooth.getState(), MultiplexBluetoothTransport.STATE_NONE);
57-
} else {
55+
if (!DeviceUtil.isEmulator()) {
5856
assertEquals(bluetooth.getState(), MultiplexBluetoothTransport.STATE_LISTEN);
5957
}
6058

0 commit comments

Comments
 (0)