Fix ReplicatedLargeMessageWithDelayFailoverTest

This commit is contained in:
jbertram 2015-08-14 12:37:02 -05:00
parent 3dd9ce6b0c
commit cbebbc43fd
2 changed files with 7 additions and 2 deletions

View File

@ -1941,7 +1941,6 @@ public class FailoverTest extends FailoverTestBase {
public void testBackupServerNotRemoved() throws Exception {
// HORNETQ-720 Disabling test for replicating backups.
if (!(backupServer.getServer().getHAPolicy() instanceof SharedStoreSlavePolicy)) {
waitForComponent(backupServer, 1);
return;
}
locator.setFailoverOnInitialConnection(true);

View File

@ -34,7 +34,13 @@ public class ReplicatedLargeMessageWithDelayFailoverTest extends ReplicatedLarge
startBackupServer = false;
super.setUp();
syncDelay = new BackupSyncDelay(backupServer, liveServer);
backupServer.start();
/* Using getName() here is a bit of a hack, but if the backup is started for this test then the test will fail
* intermittently due to an InterruptedException.
*/
if (!getName().equals("testBackupServerNotRemoved")) {
backupServer.start();
}
}
@Override