commit | 5b63b6c1070dff5aa6461a0b1ff2f439b47d4ba0 | [log] [tgz] |
---|---|---|
author | Sudheer Shanka <sudheersai@google.com> | Wed Mar 30 06:36:23 2022 +0000 |
committer | Sudheer Shanka <sudheersai@google.com> | Sat Apr 02 21:05:51 2022 +0000 |
tree | a5b728d613830bc8b6c81ee7bedd9c415380a090 | |
parent | 3938102448ee8990f62ac9c387ba8dc9afe6f2b7 [diff] |
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
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 a840242..f460180 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 @@ 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;