Merge "Fix flakes in tests running after testIsPrivateDnsBroken" am: de7eb04d71
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1749560 Change-Id: Ib7b4f8ea428c0becff28b541db84529024cddd36
This commit is contained in:
commit
d2b7990122
1 changed files with 2 additions and 0 deletions
|
|
@ -729,6 +729,8 @@ public class ConnectivityManagerTest {
|
|||
.isPrivateDnsBroken()) && networkForPrivateDns.equals(entry.getNetwork()));
|
||||
} finally {
|
||||
mCtsNetUtils.restorePrivateDnsSetting();
|
||||
// Toggle wifi to make sure it is re-validated
|
||||
reconnectWifi();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue