commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandy...@apache.org
Subject svn commit: r469364 - /jakarta/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
Date Tue, 31 Oct 2006 04:16:22 GMT
Author: sandymac
Date: Mon Oct 30 20:16:21 2006
New Revision: 469364

URL: http://svn.apache.org/viewvc?view=rev&rev=469364
Log:
Less agressive timings to reduce the chance of thread scheduling causing the testMaxTotalLRU
to fail.
Changed in response to issue POOL-89

Modified:
    jakarta/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java

Modified: jakarta/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java?view=diff&rev=469364&r1=469363&r2=469364
==============================================================================
--- jakarta/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
(original)
+++ jakarta/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java
Mon Oct 30 20:16:21 2006
@@ -237,22 +237,22 @@
         Object o1 = pool.borrowObject("a");
         assertNotNull(o1);
         pool.returnObject("a", o1);
-        Thread.sleep(10);
+        Thread.sleep(25);
 
         Object o2 = pool.borrowObject("b");
         assertNotNull(o2);
         pool.returnObject("b", o2);
-        Thread.sleep(10);
+        Thread.sleep(25);
 
         Object o3 = pool.borrowObject("c");
         assertNotNull(o3);
         pool.returnObject("c", o3);
-        Thread.sleep(10);
+        Thread.sleep(25);
 
         Object o4 = pool.borrowObject("a");
         assertNotNull(o4);
         pool.returnObject("a", o4);
-        Thread.sleep(10);
+        Thread.sleep(25);
 
         assertSame(o1, o4);
 
@@ -260,7 +260,7 @@
         Object o5 = pool.borrowObject("d");
         assertNotNull(o5);
         pool.returnObject("d", o5);
-        Thread.sleep(10);
+        Thread.sleep(25);
 
         // now re-request b, we should get a different object because it should
         // have been expelled from pool (was oldest because a was requested after b)



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


Mime
View raw message