commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r897735 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java
Date Sun, 10 Jan 2010 23:55:38 GMT
Author: sebb
Date: Sun Jan 10 23:55:37 2010
New Revision: 897735

URL: http://svn.apache.org/viewvc?rev=897735&view=rev
Log:
Show total loop count just in case.

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=897735&r1=897734&r2=897735&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 Sun
Jan 10 23:55:37 2010
@@ -729,9 +729,11 @@
                 int done=0;
                 int failed=0;
                 int didNotRun = 0;
+                int loops=0;
                 for (int i = 0; i < pts.length; i++) {
                     final PoolTest poolTest = pts[i];
                     poolTest.thread.join();
+                    loops += poolTest.loops;
                     final String state = poolTest.state;
                     if (DONE.equals(state)){
                         done++;
@@ -751,6 +753,7 @@
                 long time = timeStamp() - startTime;
                 System.out.println("Multithread test time = " + time
                         + " ms. Threads: " + pts.length
+                        + ". Loops: " + loops
                         + ". Hold time: " + holdTime
                         + ". Maxwait: " + maxWait
                         + ". Done: " + done



Mime
View raw message