[Jboss-cvs] JBossAS SVN: r56826 - branches/Branch_4_0/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:24:35 EDT 2006


Author: bill.burke at jboss.com
Date: 2006-09-13 21:24:34 -0400 (Wed, 13 Sep 2006)
New Revision: 56826

Modified:
   branches/Branch_4_0/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java
Log:
race condition in test

Modified: branches/Branch_4_0/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java
===================================================================
--- branches/Branch_4_0/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java	2006-09-14 01:21:42 UTC (rev 56825)
+++ branches/Branch_4_0/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java	2006-09-14 01:24:34 UTC (rev 56826)
@@ -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