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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user