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

Commit a8f8b39d authored by William Escande's avatar William Escande Committed by Gerrit Code Review
Browse files

Merge "Fix profile disable flakiness"

parents c8e89bb3 8877998d
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -186,6 +186,9 @@ public class TestUtils {
        verify(adapterService, timeout(SERVICE_TOGGLE_TIMEOUT_MS)).onProfileServiceStateChanged(
        verify(adapterService, timeout(SERVICE_TOGGLE_TIMEOUT_MS)).onProfileServiceStateChanged(
                profile.capture(), eq(BluetoothAdapter.STATE_OFF));
                profile.capture(), eq(BluetoothAdapter.STATE_OFF));
        Assert.assertEquals(profileServiceClass.getName(), profile.getValue().getClass().getName());
        Assert.assertEquals(profileServiceClass.getName(), profile.getValue().getClass().getName());
        ArgumentCaptor<ProfileService> profile2 = ArgumentCaptor.forClass(profileServiceClass);
        verify(adapterService, timeout(SERVICE_TOGGLE_TIMEOUT_MS)).removeProfile(profile2.capture());
        Assert.assertEquals(profileServiceClass.getName(), profile2.getValue().getClass().getName());
    }
    }


    /**
    /**