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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user