summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hugo Benichi <hugobenichi@google.com> 2017-05-31 03:59:41 +0000
committer android-build-merger <android-build-merger@google.com> 2017-05-31 03:59:41 +0000
commit7bbdfcd8eb3db63c9f48855482ff83bb92b900df (patch)
tree8bb983c0c808fda658839218e8e76b1e8c574df1
parent2aa649593be8ff1d2aa838fa2b4ea2f45ff4deda (diff)
parent5f046cb614014d5af5db7f4db6dc8834a26db858 (diff)
Merge "ConnectivityServiceTest: more tweaks to testRequestBenchmark" am: 76efbb30f5
am: 5f046cb614 Change-Id: I4bf83bb6b874a6ab82a6dd54228758d204120acc
-rw-r--r--tests/net/java/com/android/server/ConnectivityServiceTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/net/java/com/android/server/ConnectivityServiceTest.java b/tests/net/java/com/android/server/ConnectivityServiceTest.java
index 4fdbfe75da28..0263c57879dc 100644
--- a/tests/net/java/com/android/server/ConnectivityServiceTest.java
+++ b/tests/net/java/com/android/server/ConnectivityServiceTest.java
@@ -2411,8 +2411,7 @@ public class ConnectivityServiceTest extends AndroidTestCase {
}
@Ignore // This test has instrinsic chances of spurious failures: ignore for continuous testing.
- @SmallTest
- public void testRequestBenchmark() throws Exception {
+ public void benchmarkRequestRegistrationAndCallbackDispatch() throws Exception {
// TODO: turn this unit test into a real benchmarking test.
// Benchmarks connecting and switching performance in the presence of a large number of
// NetworkRequests.
@@ -2422,9 +2421,9 @@ public class ConnectivityServiceTest extends AndroidTestCase {
// and NUM_REQUESTS onAvailable callbacks to fire.
// See how long it took.
final int NUM_REQUESTS = 90;
- final int REGISTER_TIME_LIMIT_MS = 180;
- final int CONNECT_TIME_LIMIT_MS = 50;
- final int SWITCH_TIME_LIMIT_MS = 50;
+ final int REGISTER_TIME_LIMIT_MS = 200;
+ final int CONNECT_TIME_LIMIT_MS = 60;
+ final int SWITCH_TIME_LIMIT_MS = 60;
final int UNREGISTER_TIME_LIMIT_MS = 20;
final NetworkRequest request = new NetworkRequest.Builder().clearCapabilities().build();