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

Commit 9a64ba26 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN Committed by android-build-merger
Browse files

Merge "Use timeout consts in all ConnService tests" am: 3fbbe734 am: 589432e7 am: 617b89e4

am: 12e7fc47

Change-Id: Ic17f8b385d739817023abcf60657907d8cb3c10f
parents 12563327 12e7fc47
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -3217,7 +3217,8 @@ public class ConnectivityServiceTest {

        mWiFiNetworkAgent = new MockNetworkAgent(TRANSPORT_WIFI);
        mWiFiNetworkAgent.connect(false);
        networkCallback.expectAvailableCallbacks(mWiFiNetworkAgent, false, false, timeoutMs);
        networkCallback.expectAvailableCallbacks(mWiFiNetworkAgent, false, false,
                TEST_CALLBACK_TIMEOUT_MS);

        // pass timeout and validate that UNAVAILABLE is not called
        networkCallback.assertNoCallback();
@@ -3237,8 +3238,8 @@ public class ConnectivityServiceTest {

        mWiFiNetworkAgent = new MockNetworkAgent(TRANSPORT_WIFI);
        mWiFiNetworkAgent.connect(false);
        final int assertTimeoutMs = 100;
        networkCallback.expectAvailableCallbacks(mWiFiNetworkAgent, false, false, assertTimeoutMs);
        networkCallback.expectAvailableCallbacks(mWiFiNetworkAgent, false, false,
                TEST_CALLBACK_TIMEOUT_MS);
        mWiFiNetworkAgent.disconnect();
        networkCallback.expectCallback(CallbackState.LOST, mWiFiNetworkAgent);