Ensure default network before testing
The testBlockedStatusCallback will get the default network,
and use it to verify upcoming callbacks. However, sometimes
the wifi network will be disconnected by previous executed
tests and becoming connected during the test, and fail the
test.
Thus, ensure wifi is the default network if it is supported
before testing.
Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest#testBlockedStatusCallback \
--rerun-until-failure 200
Fix: 260560020
Change-Id: Icd79005dbcf5966beb2f2caf271a32b3f772f475
2 files changed