[hornetq-commits] JBoss hornetq SVN: r11180 - branches/HORNETQ-720_Replication/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover.
do-not-reply at jboss.org
do-not-reply at jboss.org
Wed Aug 10 09:54:41 EDT 2011
Author: borges
Date: 2011-08-10 09:54:41 -0400 (Wed, 10 Aug 2011)
New Revision: 11180
Modified:
branches/HORNETQ-720_Replication/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/FailoverTest.java
Log:
HORNETQ-720 Fixes tests that would crash 'live' before 'backup' was up-to-date.
Modified: branches/HORNETQ-720_Replication/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/FailoverTest.java
===================================================================
--- branches/HORNETQ-720_Replication/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/FailoverTest.java 2011-08-10 11:43:38 UTC (rev 11179)
+++ branches/HORNETQ-720_Replication/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/FailoverTest.java 2011-08-10 13:54:41 UTC (rev 11180)
@@ -132,6 +132,17 @@
return sf.createSession(xa, autoCommitSends, autoCommitAcks);
}
+ @Override
+ protected void crash(ClientSession... sessions) throws Exception
+ {
+ if (backupServer != null)
+ {
+ // some tests fail the live before the backup is in sync
+ waitForBackup(sf, 3);
+ }
+ super.crash(sessions);
+ }
+
// https://jira.jboss.org/browse/HORNETQ-522
public void testNonTransactedWithZeroConsumerWindowSize() throws Exception
{
More information about the hornetq-commits
mailing list