From 81c2d99a77436dc777256bf912d8a4f2891348b3 Mon Sep 17 00:00:00 2001 From: Chiachang Wang Date: Mon, 21 Mar 2022 15:05:00 +0800 Subject: [PATCH] Extend timeout to deflake test CaptivePortalLoginActivity may load the page slowly in lower performance devices. Test expects the login page to be loaded within 10s. The flaky happened sometimes since loading page took 10+ seconds and failed the test. Extend the timeout from 10s to 20s to deflake the test. Bug: 225800341 Test: atest CaptivePortalTest Change-Id: I98ab3dbc78cb95eeee95d1c86ab286600c98390b --- tests/cts/net/src/android/net/cts/CaptivePortalTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cts/net/src/android/net/cts/CaptivePortalTest.kt b/tests/cts/net/src/android/net/cts/CaptivePortalTest.kt index a378aa79f8..03446049d1 100644 --- a/tests/cts/net/src/android/net/cts/CaptivePortalTest.kt +++ b/tests/cts/net/src/android/net/cts/CaptivePortalTest.kt @@ -77,7 +77,7 @@ private const val LOCALHOST_HOSTNAME = "localhost" // Re-connecting to the AP, obtaining an IP address, revalidating can take a long time private const val WIFI_CONNECT_TIMEOUT_MS = 40_000L -private const val TEST_TIMEOUT_MS = 10_000L +private const val TEST_TIMEOUT_MS = 20_000L private const val TAG = "CaptivePortalTest"