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
This commit is contained in:
Chiachang Wang
2022-03-21 15:05:00 +08:00
parent ba61dca57c
commit 81c2d99a77

View File

@@ -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"