Merge "Updating timeout for Per-App CTS" am: 420072651d am: eaa493d033
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1736927 Change-Id: Ia7035d953fe0f073467b608b58aa06f65a313224
This commit is contained in:
@@ -2216,7 +2216,8 @@ public class ConnectivityManagerTest {
|
||||
// Validate when setting unmetered to metered, unmetered is lost and replaced by the
|
||||
// network with the TEST transport.
|
||||
setWifiMeteredStatusAndWait(ssid, true /* isMetered */);
|
||||
defaultCallback.expectCallback(CallbackEntry.LOST, wifiNetwork);
|
||||
defaultCallback.expectCallback(CallbackEntry.LOST, wifiNetwork,
|
||||
NETWORK_CALLBACK_TIMEOUT_MS);
|
||||
waitForAvailable(defaultCallback, tnt.getNetwork());
|
||||
// Depending on if this device has cellular connectivity or not, multiple available
|
||||
// callbacks may be received. Eventually, metered Wi-Fi should be the final available
|
||||
@@ -2226,7 +2227,8 @@ public class ConnectivityManagerTest {
|
||||
} finally {
|
||||
// Validate that removing the test network will fallback to the default network.
|
||||
runWithShellPermissionIdentity(tnt::teardown);
|
||||
defaultCallback.expectCallback(CallbackEntry.LOST, tnt.getNetwork());
|
||||
defaultCallback.expectCallback(CallbackEntry.LOST, tnt.getNetwork(),
|
||||
NETWORK_CALLBACK_TIMEOUT_MS);
|
||||
waitForAvailable(defaultCallback);
|
||||
|
||||
setWifiMeteredStatusAndWait(ssid, oldMeteredValue);
|
||||
@@ -2262,7 +2264,8 @@ public class ConnectivityManagerTest {
|
||||
waitForAvailable(systemDefaultCallback, wifiNetwork);
|
||||
} finally {
|
||||
runWithShellPermissionIdentity(tnt::teardown);
|
||||
defaultCallback.expectCallback(CallbackEntry.LOST, tnt.getNetwork());
|
||||
defaultCallback.expectCallback(CallbackEntry.LOST, tnt.getNetwork(),
|
||||
NETWORK_CALLBACK_TIMEOUT_MS);
|
||||
|
||||
// This network preference should only ever use the test network therefore available
|
||||
// should not trigger when the test network goes down (e.g. switch to cellular).
|
||||
|
||||
Reference in New Issue
Block a user