tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r799427 - /tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/TestConcurrency.java
Date Thu, 30 Jul 2009 19:40:54 GMT
Author: markt
Date: Thu Jul 30 19:40:54 2009
New Revision: 799427

URL: http://svn.apache.org/viewvc?rev=799427&view=rev
Log:
Fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=47583
Fix timing related failures.
Patch suggested by sebb

Modified:
    tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/TestConcurrency.java

Modified: tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/TestConcurrency.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/TestConcurrency.java?rev=799427&r1=799426&r2=799427&view=diff
==============================================================================
--- tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/TestConcurrency.java (original)
+++ tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/TestConcurrency.java Thu
Jul 30 19:40:54 2009
@@ -36,8 +36,8 @@
 
     @Override
     protected void tearDown() throws Exception {
-        Driver.reset();
         ds.close(true);
+        Driver.reset();
         super.tearDown();
     }
     
@@ -68,7 +68,7 @@
         }
         try {
             while (loopcount.get()<iter) {
-                assertEquals("Size comparison:",10, ds.getPool().getSize());
+                assertTrue("Size comparison(less than 11):",ds.getPool().getSize()<=10);
                 if (debug) {
                     System.out.println("Size: "+ds.getPool().getSize());
                     System.out.println("Used: "+ds.getPool().getActive());



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message