Revert "Relax the check of network availability in CtsHostsideNetworkTests."

This reverts commit 863ec4b9cb.

Bug: 27803922
Change-Id: I3ccf33779df580ed615f44d0410676cba972ea6c
This commit is contained in:
Sudheer Shanka
2017-04-19 17:35:11 +00:00
parent d017754253
commit 99ec4c0d91

View File

@@ -833,9 +833,7 @@ abstract class AbstractRestrictBackgroundNetworkTestCase extends Instrumentation
}
if (latch.await(FOREGROUND_PROC_NETWORK_TIMEOUT_MS, TimeUnit.MILLISECONDS)) {
if (!errors[0].isEmpty()) {
// TODO: revert this change once b/35523062 is fixed.
// fail("Network is not available for app2 (" + mUid + "): " + errors[0]);
assertForegroundNetworkAccess();
fail("Network is not available for app2 (" + mUid + "): " + errors[0]);
}
} else {
fail("Timed out waiting for network availability status from app2 (" + mUid + ")");