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

Commit cc309335 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "A2dpServiceTest: prevent flakiness without flag" into main am: aaf42f91

parents 9f71778d aaf42f91
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ import android.media.BluetoothProfileConnectionInfo;
import android.os.Looper;
import android.os.ParcelUuid;
import android.os.test.TestLooper;
import android.platform.test.annotations.EnableFlags;
import android.platform.test.flag.junit.FlagsParameterization;
import android.platform.test.flag.junit.SetFlagsRule;

@@ -694,6 +695,7 @@ public class A2dpServiceTest {
     * if the device is unbond.
     */
    @Test
    @EnableFlags(Flags.FLAG_A2DP_SERVICE_LOOPER)
    public void testDeleteStateMachineDisconnectEvents() {
        // Update the device priority so okToConnect() returns true
        when(mDatabaseManager.getProfileConnectionPolicy(sTestDevice, BluetoothProfile.A2DP))