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

Commit 01f6c1d7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "AdapterServiceTest: expect only one scan mode" into main

parents aedd0dfa 5068a130
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);
    }

    /**