[jboss-cvs] JBoss Messaging SVN: r8000 - branches/Branch_1_4/tests/src/org/jboss/test/messaging/jms/clustering.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 6 01:55:41 EDT 2010


Author: gaohoward
Date: 2010-04-06 01:55:41 -0400 (Tue, 06 Apr 2010)
New Revision: 8000

Modified:
   branches/Branch_1_4/tests/src/org/jboss/test/messaging/jms/clustering/GroupManagementTest.java
Log:
fix potential test failure condition, add sleep to make sure all view change notifications are received


Modified: branches/Branch_1_4/tests/src/org/jboss/test/messaging/jms/clustering/GroupManagementTest.java
===================================================================
--- branches/Branch_1_4/tests/src/org/jboss/test/messaging/jms/clustering/GroupManagementTest.java	2010-04-01 06:33:15 UTC (rev 7999)
+++ branches/Branch_1_4/tests/src/org/jboss/test/messaging/jms/clustering/GroupManagementTest.java	2010-04-06 05:55:41 UTC (rev 8000)
@@ -446,6 +446,16 @@
          }
 
          assertFalse(failed);
+         
+         //sleeping to give more time to accept view change notification
+         try
+         {
+            Thread.sleep(5000);
+         }
+         catch (InterruptedException e)
+         {
+            //ignore;
+         }
 
          Set view = ServerManagement.getServer(0).getNodeIDView();
          assertEquals(numServers, view.size());




More information about the jboss-cvs-commits mailing list