Author: dblevins
Date: Fri Jul  6 00:02:33 2012
New Revision: 1358003

URL: http://svn.apache.org/viewvc?rev=1358003&view=rev
Log:
Increase the MaxAge to hopefully prevent too many instances from timing out: 
expecting 5 not 8
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=1358003&r1=1358002&r2=1358003&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
 Fri Jul  6 00:02:33 2012
@@ -358,23 +358,21 @@ public class StatelessPoolStatsTest exte
         final Properties properties = new Properties();
         properties.put("MaxSize", "10");
         properties.put("MinSize", "3");
-        properties.put("MaxAge", "100 ms");
+        properties.put("MaxAge", "300 ms");
         properties.put("ReplaceAged", "false");
         properties.put("MaxAgeOffset", "0");
 
         final CounterBean bean = deploy("testAging", properties);
 
-        assertAttribute("MaxAge", 100L);
+        assertAttribute("MaxAge", 300L);
 
         checkout(bean, 5).release();
 
-        Thread.sleep(110);
-
         final Checkout checkout = checkout(bean, 5);
 
         CounterBean.constructed = new CountDownLatch(3);
 
-        Thread.sleep(110);
+        Thread.sleep(330);
 
         checkout.release();
 
@@ -396,23 +394,21 @@ public class StatelessPoolStatsTest exte
         final Properties properties = new Properties();
         properties.put("MaxSize", "10");
         properties.put("MinSize", "3");
-        properties.put("MaxAge", "100 ms");
+        properties.put("MaxAge", "300 ms");
         properties.put("ReplaceAged", "true");
         properties.put("MaxAgeOffset", "0");
 
         final CounterBean bean = deploy("testAgingWithReplacement", 
properties);
 
-        assertAttribute("MaxAge", 100L);
+        assertAttribute("MaxAge", 300L);
 
         checkout(bean, 5).release();
 
-        Thread.sleep(110);
-
         final Checkout checkout = checkout(bean, 5);
 
         CounterBean.constructed = new CountDownLatch(5);
 
-        Thread.sleep(110);
+        Thread.sleep(330);
 
         checkout.release();
 


Reply via email to