Fix testMobileDataAlwaysOn flakiness

Test: atest --iterations 100 CST#testMobileDataAlwaysOn
Change-Id: I0e6df4694752dab7a5938e8f8bd88c7da7c3fcd5
This commit is contained in:
Chalard Jean
2021-02-17 18:07:38 +09:00
parent 94cb442983
commit 5e8ed0d307

View File

@@ -4173,6 +4173,7 @@ public class ConnectivityServiceTest {
// ... and cell data to be torn down after nascent network timeout. // ... and cell data to be torn down after nascent network timeout.
cellNetworkCallback.expectCallback(CallbackEntry.LOST, mCellNetworkAgent, cellNetworkCallback.expectCallback(CallbackEntry.LOST, mCellNetworkAgent,
mService.mNascentDelayMs + TEST_CALLBACK_TIMEOUT_MS); mService.mNascentDelayMs + TEST_CALLBACK_TIMEOUT_MS);
waitForIdle();
assertLength(1, mCm.getAllNetworks()); assertLength(1, mCm.getAllNetworks());
} finally { } finally {
testFactory.terminate(); testFactory.terminate();