Increase timeout for waiting a validated network

testDefaultNetworkActiveListener expects Wifi network to be
the system default network. This requires Wifi to be validated
since the cellular network may be connected in the devices that
support telephony. The original timeout was only set to 5
seconds. The timeout may not be enough in some poor environment
cases, so increase the timeout would be helpful to reduce the
flaky rate.

Bug: 250250617
Test: atest android.net.cts.ConnectivityManagerTest
Change-Id: Iaef307e72dcd7a74cd5fdc6a406443eed6b412a6
diff --git a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java
index 310d7bf..4887a78 100644
--- a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java
+++ b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java
@@ -270,7 +270,10 @@
     private static final int MIN_KEEPALIVE_INTERVAL = 10;
 
     private static final int NETWORK_CALLBACK_TIMEOUT_MS = 30_000;
-    private static final int LISTEN_ACTIVITY_TIMEOUT_MS = 5_000;
+    // Timeout for waiting network to be validated. Set the timeout to 30s, which is more than
+    // DNS timeout.
+    // TODO(b/252972908): reset the original timer when aosp/2188755 is ramped up.
+    private static final int LISTEN_ACTIVITY_TIMEOUT_MS = 30_000;
     private static final int NO_CALLBACK_TIMEOUT_MS = 100;
     private static final int SOCKET_TIMEOUT_MS = 100;
     private static final int NUM_TRIES_MULTIPATH_PREF_CHECK = 20;