cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1330947 - /cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java
Date Thu, 26 Apr 2012 16:47:32 GMT
Author: dkulp
Date: Thu Apr 26 16:47:32 2012
New Revision: 1330947

URL: http://svn.apache.org/viewvc?rev=1330947&view=rev
Log:
Adjust some timings to make the test more reliable. (I hope)

Modified:
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java

Modified: cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java?rev=1330947&r1=1330946&r2=1330947&view=diff
==============================================================================
--- cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java
(original)
+++ cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java
Thu Apr 26 16:47:32 2012
@@ -69,10 +69,9 @@ public class ThreadPoolTest extends Abst
         public void run() {
             long start = System.currentTimeMillis();
             try {
-                greeter.greetMeLater(2 * 1000);
+                greeter.greetMeLater(1600);
             } catch (Throwable t) {
                 //ignore
-                t.printStackTrace();
             }
             long end = System.currentTimeMillis();
             total = end - start;
@@ -84,6 +83,9 @@ public class ThreadPoolTest extends Abst
 
     @Test
     public void testFallbackThreadPoolConfig() throws Exception {
+        //make sure things are running
+        greeter.greetMeLater(1);
+        greeter.greetMeLater(1);
         TestRunnable r[] = new TestRunnable[5];
         Thread[] invokers = new Thread[5];
         for (int i = 0; i < invokers.length; i++) {



Mime
View raw message