You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2014/07/14 17:40:55 UTC
svn commit: r1610436 -
/tomee/tomee/branches/tomee-1.7.x/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInstanceManagerPoolingTest.java
Author: andygumbrecht
Date: Mon Jul 14 15:40:55 2014
New Revision: 1610436
URL: http://svn.apache.org/r1610436
Log:
Timeout
Modified:
tomee/tomee/branches/tomee-1.7.x/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInstanceManagerPoolingTest.java
Modified: tomee/tomee/branches/tomee-1.7.x/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInstanceManagerPoolingTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInstanceManagerPoolingTest.java?rev=1610436&r1=1610435&r2=1610436&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInstanceManagerPoolingTest.java (original)
+++ tomee/tomee/branches/tomee-1.7.x/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInstanceManagerPoolingTest.java Mon Jul 14 15:40:55 2014
@@ -93,7 +93,7 @@ public class StatelessInstanceManagerPoo
public void testStatelessBeanRelease() throws Exception {
- final int count = 60;
+ final int count = 20;
final CountDownLatch invocations = new CountDownLatch(count);
final InitialContext ctx = new InitialContext();
final Runnable counterBeanLocal = new Runnable() {
@@ -121,12 +121,10 @@ public class StatelessInstanceManagerPoo
thread.start();
}
- final boolean success = invocations.await(30000, TimeUnit.MILLISECONDS);
+ final boolean success = invocations.await(20000, TimeUnit.MILLISECONDS);
assertTrue("invocations timeout -> invocations.getCount() == " + invocations.getCount(), success);
- Thread.sleep(2000);
-
assertEquals(count, discardedInstances.get());
}