fix assertion
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 10 Jul 2009 21:40:26 +0000 (21:40 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 10 Jul 2009 21:40:26 +0000 (21:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@793117 13f79535-47bb-0310-9956-ffa450edef68

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

index 7aa2965..d9b2bb2 100644 (file)
@@ -91,6 +91,7 @@ public class TestConcurrency extends DefaultTestCase {
     
     public void testBrutal() throws Exception {
         ds.getPoolProperties().setRemoveAbandoned(false);
+        ds.getPoolProperties().setRemoveAbandonedTimeout(1);
         ds.getPoolProperties().setMinEvictableIdleTimeMillis(10);
         ds.getPoolProperties().setTimeBetweenEvictionRunsMillis(-1);
         ds.getConnection().close();
@@ -135,7 +136,7 @@ public class TestConcurrency extends DefaultTestCase {
         assertEquals("Size comparison:",10, ds.getPool().getSize());
         assertEquals("Idle comparison:",10, ds.getPool().getIdle());
         assertEquals("Used comparison:",0, ds.getPool().getActive());
-        assertEquals("Connect count",10,Driver.connectCount.get()-Driver.disconnectCount.get());
+        assertEquals("Connect count",10,Driver.connectCount.get());
             
     }