Merge "Fix testSetOemNetworkPreferenceForTestPref flake" into main
This commit is contained in:
commit
8454fb5fed
1 changed files with 2 additions and 1 deletions
|
|
@ -2723,7 +2723,8 @@ public class ConnectivityManagerTest {
|
|||
// the network with the TEST transport. Also wait for validation here, in case there
|
||||
// is a bug that's only visible when the network is validated.
|
||||
setWifiMeteredStatusAndWait(ssid, true /* isMetered */, true /* waitForValidation */);
|
||||
defaultCallback.expect(CallbackEntry.LOST, wifiNetwork, NETWORK_CALLBACK_TIMEOUT_MS);
|
||||
defaultCallback.eventuallyExpect(CallbackEntry.LOST, NETWORK_CALLBACK_TIMEOUT_MS,
|
||||
l -> l.getNetwork().equals(wifiNetwork));
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue