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

Commit 5068a130 authored by William Escande's avatar William Escande
Browse files

AdapterServiceTest: expect only one scan mode

Bug: 292141273
Test: atest AdapterServiceTest
      need to be run on multiple different target
Change-Id: Ibf3752c1fbcec9aab7b17a79f83b719281e8912f
parent a4cffbd2
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -581,11 +581,7 @@ public class AdapterServiceTest {
        verify(mMockContext, timeout(ONE_SECOND_MS).times(2))
                .sendBroadcast(any(), eq(BLUETOOTH_SCAN), any(Bundle.class));

        final int scanMode = mAdapterService.getScanMode();
        assertThat(scanMode)
                .isAnyOf(
                        BluetoothAdapter.SCAN_MODE_CONNECTABLE,
                        BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE);
        assertThat(mAdapterService.getScanMode()).isEqualTo(BluetoothAdapter.SCAN_MODE_CONNECTABLE);
    }

    /**