[hornetq-commits] JBoss hornetq SVN: r12306 - trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Mar 16 05:01:02 EDT 2012


Author: borges
Date: 2012-03-16 05:01:01 -0400 (Fri, 16 Mar 2012)
New Revision: 12306

Modified:
   trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/ReplicatedWithDelayFailoverTest.java
Log:
HORNETQ-720 Fix hang on test delaying 'in-sync' message for Backup.

Modified: trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/ReplicatedWithDelayFailoverTest.java
===================================================================
--- trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/ReplicatedWithDelayFailoverTest.java	2012-03-15 14:32:31 UTC (rev 12305)
+++ trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/ReplicatedWithDelayFailoverTest.java	2012-03-16 09:01:01 UTC (rev 12306)
@@ -23,4 +23,12 @@
       syncDelay.deliverUpToDateMsg();
       super.crash(sessions);
    }
+
+   @Override
+   protected void crash(boolean waitFailure, ClientSession... sessions) throws Exception
+   {
+      syncDelay.deliverUpToDateMsg();
+      waitForBackup(null, 5);
+      super.crash(waitFailure, sessions);
+   }
 }



More information about the hornetq-commits mailing list