Fix the test flakiness.
Bug: 326387894 Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.ConnectivityServiceTest Change-Id: I2fdb0913dcb2f110a40c9bc7307e9fea19fcce4f
This commit is contained in:
parent
1bd299524f
commit
ab00a8e4c8
1 changed files with 2 additions and 1 deletions
|
|
@ -17434,11 +17434,12 @@ public class ConnectivityServiceTest {
|
|||
}
|
||||
|
||||
mWiFiAgent.disconnect();
|
||||
waitForIdle();
|
||||
|
||||
if (expectUnavailable) {
|
||||
testFactory.expectRequestRemove();
|
||||
testFactory.assertRequestCountEquals(0);
|
||||
} else {
|
||||
testFactory.expectRequestAdd();
|
||||
testFactory.assertRequestCountEquals(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue