Author: clebert.suconic(a)jboss.com
Date: 2011-12-05 15:59:22 -0500 (Mon, 05 Dec 2011)
New Revision: 11839
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/failover/GroupingFailoverTestBase.java
Log:
avoiding races on test
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/failover/GroupingFailoverTestBase.java
===================================================================
---
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/failover/GroupingFailoverTestBase.java 2011-12-05
16:35:33 UTC (rev 11838)
+++
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/failover/GroupingFailoverTestBase.java 2011-12-05
20:59:22 UTC (rev 11839)
@@ -47,6 +47,9 @@
try
{
startServers(2, 0, 1);
+ waitForTopology(servers[0], 2);
+ waitForTopology(servers[1], 2);
+ waitForTopology(servers[2], 2);
setupSessionFactory(0, isNetty());
setupSessionFactory(1, isNetty());
@@ -124,6 +127,9 @@
try
{
startServers(2, 0, 1);
+ waitForTopology(servers[0], 2);
+ waitForTopology(servers[1], 2);
+ waitForTopology(servers[2], 2);
setupSessionFactory(0, isNetty());
Show replies by date