[Jboss-cvs] JBossAS SVN: r56825 - branches/JBoss_4_0_4_GA_EJB3_RC9/ejb3/src/test/org/jboss/ejb3/test/stateful/unit
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Sep 13 21:21:43 EDT 2006
Author: bill.burke at jboss.com
Date: 2006-09-13 21:21:42 -0400 (Wed, 13 Sep 2006)
New Revision: 56825
Modified:
branches/JBoss_4_0_4_GA_EJB3_RC9/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java
Log:
race condition in test
Modified: branches/JBoss_4_0_4_GA_EJB3_RC9/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java
===================================================================
--- branches/JBoss_4_0_4_GA_EJB3_RC9/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java 2006-09-14 00:12:08 UTC (rev 56824)
+++ branches/JBoss_4_0_4_GA_EJB3_RC9/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java 2006-09-14 01:21:42 UTC (rev 56825)
@@ -420,10 +420,14 @@
Thread.sleep(5000);
- for (int i = 1; i < 2 ; ++i)
+ boolean wasConcurrentException = false;
+ for (StatefulInvoker invoker: invokers)
{
- assertNotNull(invokers[i].getException());
+ if (invoker.getException() != null)
+ wasConcurrentException = true;
}
+
+ assertTrue(wasConcurrentException);
}
public static Test suite() throws Exception
More information about the jboss-cvs-commits
mailing list