From 5b63b6c1070dff5aa6461a0b1ff2f439b47d4ba0 Mon Sep 17 00:00:00 2001 From: Sudheer Shanka Date: Wed, 30 Mar 2022 06:36:23 +0000 Subject: [PATCH] Increase the temp-allowlist duration in tests It is possible there is a delay in app getting to the background state and then initiating network activity. We need the app to stay in the temp allowlist until then. Fixes: 227418169 Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java Change-Id: I6a98cc17a40cfb54bf3e12f51b5584159e69be0c --- .../net/hostside/AbstractRestrictBackgroundNetworkTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cts/hostside/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java b/tests/cts/hostside/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java index a8402421ee..f4601808b0 100644 --- a/tests/cts/hostside/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java +++ b/tests/cts/hostside/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java @@ -149,7 +149,7 @@ public abstract class AbstractRestrictBackgroundNetworkTestCase { private static final String APP_NOT_FOREGROUND_ERROR = "app_not_fg"; - protected static final long TEMP_POWERSAVE_WHITELIST_DURATION_MS = 5_000; // 5 sec + protected static final long TEMP_POWERSAVE_WHITELIST_DURATION_MS = 20_000; // 20 sec private static final long BROADCAST_TIMEOUT_MS = 15_000;