tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1357962 - /openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
Date Thu, 05 Jul 2012 21:56:58 GMT
Author: dblevins
Date: Thu Jul  5 21:56:58 2012
New Revision: 1357962

URL: http://svn.apache.org/viewvc?rev=1357962&view=rev
Log:
Inappripriate fix, but quick.  Add Thread.sleep(110) to give instances time to return to the
pool.  Otherwise more than 5 are created and Aged comes out higher than 5.
TOMEE-0 (not feature or fix related)

Modified:
    openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java

Modified: openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java?rev=1357962&r1=1357961&r2=1357962&view=diff
==============================================================================
--- openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
(original)
+++ openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
Thu Jul  5 21:56:58 2012
@@ -368,6 +368,8 @@ public class StatelessPoolStatsTest exte
 
         checkout(bean, 5).release();
 
+        Thread.sleep(110);
+
         final Checkout checkout = checkout(bean, 5);
 
         CounterBean.constructed = new CountDownLatch(3);
@@ -404,6 +406,8 @@ public class StatelessPoolStatsTest exte
 
         checkout(bean, 5).release();
 
+        Thread.sleep(110);
+
         final Checkout checkout = checkout(bean, 5);
 
         CounterBean.constructed = new CountDownLatch(5);



Mime
View raw message