cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1330952 - /cxf/branches/2.5.x-fixes/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java
Date Thu, 26 Apr 2012 16:50:19 GMT
Author: dkulp
Date: Thu Apr 26 16:50:18 2012
New Revision: 1330952

URL: http://svn.apache.org/viewvc?rev=1330952&view=rev
Log:
Merged revisions 1330947 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1330947 | dkulp | 2012-04-26 12:47:32 -0400 (Thu, 26 Apr 2012) | 2 lines

  Adjust some timings to make the test more reliable. (I hope)

........

Modified:
    cxf/branches/2.5.x-fixes/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java

Modified: cxf/branches/2.5.x-fixes/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java?rev=1330952&r1=1330951&r2=1330952&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java
(original)
+++ cxf/branches/2.5.x-fixes/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/ThreadPoolTest.java
Thu Apr 26 16:50:18 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