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

Commit c1563865 authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Remove all bonded devices in test setup

Test: atest BumbleBluetoothTests:PairingTest
Flag: TEST_ONLY
Bug: 369242979
Change-Id: I1bccde37e2b96a2ef9fd5f0c1e096182ac32c815
parent e1536ce9
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -174,12 +174,9 @@ public class PairingTest {
        mRemoteLeDevice =
                sAdapter.getRemoteLeDevice(
                        Utils.BUMBLE_RANDOM_ADDRESS, BluetoothDevice.ADDRESS_TYPE_RANDOM);
        Set<BluetoothDevice> bondedDevices = sAdapter.getBondedDevices();
        if (bondedDevices.contains(mBumbleDevice)) {
            removeBond(mBumbleDevice);
        }
        if (bondedDevices.contains(mRemoteLeDevice)) {
            removeBond(mRemoteLeDevice);

        for (BluetoothDevice device : sAdapter.getBondedDevices()) {
            removeBond(device);
        }
    }