Increased the timeout from 5 to 30 seconds

Increase the timeout to deal with the flaky test.

Bug: 260073439
Test: TH

Change-Id: I653d80cfa97256e139f8cf989a085b1133732092
This commit is contained in:
Mark Chien
2022-12-06 05:34:50 +00:00
parent ed3e683407
commit 82eb31b346

View File

@@ -498,7 +498,7 @@ public class ConnectivityManagerTest {
public void testConnectivityManagerDoesNotLeakContext() throws Exception { public void testConnectivityManagerDoesNotLeakContext() throws Exception {
final WeakReference<Context> ref = makeConnectivityManagerAndReturnContext(); final WeakReference<Context> ref = makeConnectivityManagerAndReturnContext();
final int attempts = 100; final int attempts = 600;
final long waitIntervalMs = 50; final long waitIntervalMs = 50;
for (int i = 0; i < attempts; i++) { for (int i = 0; i < attempts; i++) {
forceGC(); forceGC();