commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r897079 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java
Date Fri, 08 Jan 2010 02:00:13 GMT
Author: sebb
Date: Fri Jan  8 02:00:04 2010
New Revision: 897079

URL: http://svn.apache.org/viewvc?rev=897079&view=rev
Log:
Log time actually waited

Modified:
    commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java?rev=897079&r1=897078&r2=897079&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java (original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java Fri
Jan  8 02:00:04 2010
@@ -699,7 +699,9 @@
                     (pts[i] = new PoolTest(threadGroup, holdTime)).start();
                 }
 
+                long t1 = System.currentTimeMillis();
                 Thread.sleep(100L); // Wait for long enough to allow threads to start
+                long t2 = System.currentTimeMillis();
 
                 for (int i = 0; i < pts.length; i++) {
                     pts[i].stop();
@@ -730,7 +732,7 @@
                 long time = System.currentTimeMillis() - startTime;
                 System.out.println("Multithread test time = " + time
                         + " ms. Threads: " + pts.length
-                        + ". Hold time: " + holdTime
+                        + ". Hold time: " + holdTime + ". Held: " + (t2-t1)
                         + ". Maxwait: " + maxWait
                         + ". Done: " + done
                         + ". Failed: " + failed



Mime
View raw message