Author: clebert.suconic(a)jboss.com
Date: 2011-08-26 09:21:29 -0400 (Fri, 26 Aug 2011)
New Revision: 11231
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/failover/MultipleLivesMultipleBackupsFailoverTest.java
Log:
tweak on test
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/failover/MultipleLivesMultipleBackupsFailoverTest.java
===================================================================
---
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/failover/MultipleLivesMultipleBackupsFailoverTest.java 2011-08-26
06:41:31 UTC (rev 11230)
+++
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/failover/MultipleLivesMultipleBackupsFailoverTest.java 2011-08-26
13:21:29 UTC (rev 11231)
@@ -59,6 +59,7 @@
public void testMultipleFailovers2LiveServers() throws Exception
{
+ // TODO: remove these sleeps
NodeManager nodeManager1 = new InVMNodeManager();
NodeManager nodeManager2 = new InVMNodeManager();
createLiveConfig(nodeManager1, 0, 3, 4, 5);
@@ -109,23 +110,31 @@
locator2.close();
if (liveAfter0 == 2)
{
+ Thread.sleep(500);
servers.get(1).stop();
+ Thread.sleep(500);
servers.get(2).stop();
}
else
{
+ Thread.sleep(500);
servers.get(2).stop();
+ Thread.sleep(500);
servers.get(1).stop();
}
if (liveAfter3 == 4)
{
+ Thread.sleep(500);
servers.get(5).stop();
+ Thread.sleep(500);
servers.get(4).stop();
}
else
{
+ Thread.sleep(500);
servers.get(4).stop();
+ Thread.sleep(500);
servers.get(5).stop();
}
}