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

Commit 9350c8a1 authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Fix flakyness in PairingTest

When service discovery is requested, RemoteDevices always sends an empty
ACTION_UUID intent after 6 seconds. Other intents may come before or
after this intent. So there is no fix order for these events.

Test: atest BumbleBluetoothTests:PairingTest
Bug: 342946039
Flag: EXEMPT, test change
Change-Id: I0dfab96211a44e27ef6071b82df54cdaf076ae4c
parent b388022d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -355,10 +355,10 @@ public class PairingTest {
                        .next();

        // Todo: Unexpected empty ACTION_UUID intent is generated
        verifyIntentReceived(hasAction(BluetoothDevice.ACTION_UUID));
        verifyIntentReceivedUnordered(hasAction(BluetoothDevice.ACTION_UUID));

        // Wait for connection on Android
        verifyIntentReceived(
        verifyIntentReceivedUnordered(
                hasAction(BluetoothDevice.ACTION_ACL_CONNECTED),
                hasExtra(BluetoothDevice.EXTRA_TRANSPORT, BluetoothDevice.TRANSPORT_LE));