commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r883398 - in /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources: TestPerUserPoolDataSource.java TestSharedPoolDataSource.java
Date Mon, 23 Nov 2009 16:30:57 GMT
Author: sebb
Date: Mon Nov 23 16:30:56 2009
New Revision: 883398

URL: http://svn.apache.org/viewvc?rev=883398&view=rev
Log:
Ensure calculation is done using long arithmetic

Modified:
    commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java
    commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestSharedPoolDataSource.java

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java?rev=883398&r1=883397&r2=883398&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java
(original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestPerUserPoolDataSource.java
Mon Nov 23 16:30:56 2009
@@ -402,7 +402,7 @@
         for (int i = 0; i < pts.length; i++) {
             pts[i] = new PoolTest(threadGroup, holdTime);
         }
-        Thread.sleep(10 * holdTime);
+        Thread.sleep(10L * holdTime);
         for (int i = 0; i < pts.length; i++) {
             pts[i].stop();
         }

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestSharedPoolDataSource.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestSharedPoolDataSource.java?rev=883398&r1=883397&r2=883398&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestSharedPoolDataSource.java
(original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/TestSharedPoolDataSource.java
Mon Nov 23 16:30:56 2009
@@ -397,7 +397,7 @@
         for (int i = 0; i < pts.length; i++) {
             pts[i] = new PoolTest(threadGroup, holdTime);
         }
-        Thread.sleep(10 * holdTime);
+        Thread.sleep(10L * holdTime);
         for (int i = 0; i < pts.length; i++) {
             pts[i].stop();
         }



Mime
View raw message