Increase the LISTEN_ACTIVITY_TIMEOUT_MS timer
The test reuqires WiFi becomes the default network. But in
some bad networks, the probing time may take more than the
existing timer(5s). Increase it to 30s to prevent flakes
causing by bad network.
Fix: 313372234
Test: atest CtsNetTestCases
Change-Id: Ie0d2f014d2551826596d4a0e28448ba129f5e9eb
diff --git a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java
index 58f6d58..175f57b 100644
--- a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java
+++ b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java
@@ -279,7 +279,7 @@
private static final int NETWORK_CALLBACK_TIMEOUT_MS = 30_000;
// Timeout for waiting network to be validated.
- private static final int LISTEN_ACTIVITY_TIMEOUT_MS = 5_000;
+ private static final int LISTEN_ACTIVITY_TIMEOUT_MS = 30_000;
private static final int NO_CALLBACK_TIMEOUT_MS = 100;
private static final int NETWORK_REQUEST_TIMEOUT_MS = 3000;
private static final int SOCKET_TIMEOUT_MS = 100;