From 89f8fa60f292804ff6308d79c411de6ce16ce7b3 Mon Sep 17 00:00:00 2001 From: Chiachang Wang Date: Wed, 6 Dec 2023 01:47:32 +0000 Subject: [PATCH] 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 --- tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java index 58f6d58ad0..175f57bf9e 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 @@ public class ConnectivityManagerTest { 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;