Loading tests/net/java/com/android/server/ConnectivityServiceTest.java +4 −1 Original line number Diff line number Diff line Loading @@ -350,6 +350,9 @@ public class ConnectivityServiceTest { private static final String TAG = "ConnectivityServiceTest"; private static final int TIMEOUT_MS = 500; // Broadcasts can take a long time to be delivered. The test will not wait for that long unless // there is a failure, so use a long timeout. private static final int BROADCAST_TIMEOUT_MS = 30_000; private static final int TEST_LINGER_DELAY_MS = 400; private static final int TEST_NASCENT_DELAY_MS = 300; // Chosen to be less than the linger and nascent timeout. This ensures that we can distinguish Loading Loading @@ -1687,7 +1690,7 @@ public class ConnectivityServiceTest { } public Intent expectBroadcast() throws Exception { return expectBroadcast(TIMEOUT_MS); return expectBroadcast(BROADCAST_TIMEOUT_MS); } public void expectNoBroadcast(int timeoutMs) throws Exception { Loading Loading
tests/net/java/com/android/server/ConnectivityServiceTest.java +4 −1 Original line number Diff line number Diff line Loading @@ -350,6 +350,9 @@ public class ConnectivityServiceTest { private static final String TAG = "ConnectivityServiceTest"; private static final int TIMEOUT_MS = 500; // Broadcasts can take a long time to be delivered. The test will not wait for that long unless // there is a failure, so use a long timeout. private static final int BROADCAST_TIMEOUT_MS = 30_000; private static final int TEST_LINGER_DELAY_MS = 400; private static final int TEST_NASCENT_DELAY_MS = 300; // Chosen to be less than the linger and nascent timeout. This ensures that we can distinguish Loading Loading @@ -1687,7 +1690,7 @@ public class ConnectivityServiceTest { } public Intent expectBroadcast() throws Exception { return expectBroadcast(TIMEOUT_MS); return expectBroadcast(BROADCAST_TIMEOUT_MS); } public void expectNoBroadcast(int timeoutMs) throws Exception { Loading