Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bordet2012-09-21 16:06:36 +0000
committerSimone Bordet2012-09-21 16:12:12 +0000
commit05a0090dd6ae13b8359fb9d3402c9f1e24fed75b (patch)
tree99e422fac17a4363761f3e8f8a68bfc7fdb73f05
parent199971a989e92f12a49763cdd4a10739279c0498 (diff)
downloadorg.eclipse.jetty.project-05a0090dd6ae13b8359fb9d3402c9f1e24fed75b.tar.gz
org.eclipse.jetty.project-05a0090dd6ae13b8359fb9d3402c9f1e24fed75b.tar.xz
org.eclipse.jetty.project-05a0090dd6ae13b8359fb9d3402c9f1e24fed75b.zip
jetty-9: HTTP client: re-enabled debug logging for tests.
-rw-r--r--jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientLoadTest.java5
-rw-r--r--jetty-client/src/test/resources/jetty-logging.properties2
2 files changed, 5 insertions, 2 deletions
diff --git a/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientLoadTest.java b/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientLoadTest.java
index ef673d1c18..4daeb5eae3 100644
--- a/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientLoadTest.java
+++ b/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientLoadTest.java
@@ -71,6 +71,9 @@ public class HttpClientLoadTest extends AbstractHttpClientServerTest
CountDownLatch latch = new CountDownLatch(iterations);
List<String> failures = new ArrayList<>();
+ int factor = logger.isDebugEnabled() ? 25 : 1;
+ factor *= "http".equalsIgnoreCase(scheme) ? 10 : 1000;
+
// Dumps the state of the client if the test takes too long
final Thread testThread = Thread.currentThread();
client.getScheduler().schedule(new Runnable()
@@ -90,7 +93,7 @@ public class HttpClientLoadTest extends AbstractHttpClientServerTest
}
testThread.interrupt();
}
- }, iterations * ("http".equalsIgnoreCase(scheme) ? 10 : 1000), TimeUnit.MILLISECONDS);
+ }, iterations * factor, TimeUnit.MILLISECONDS);
long begin = System.nanoTime();
for (int i = 0; i < iterations; ++i)
diff --git a/jetty-client/src/test/resources/jetty-logging.properties b/jetty-client/src/test/resources/jetty-logging.properties
index 1c19e5331e..b53f780921 100644
--- a/jetty-client/src/test/resources/jetty-logging.properties
+++ b/jetty-client/src/test/resources/jetty-logging.properties
@@ -1,3 +1,3 @@
org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog
#org.eclipse.jetty.LEVEL=DEBUG
-#org.eclipse.jetty.client.LEVEL=DEBUG
+org.eclipse.jetty.client.LEVEL=DEBUG

Back to the top