You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/01/08 03:00:13 UTC

svn commit: r897079 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java

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