Fix ReplicatedLargeMessageWithDelayFailoverTest
This commit is contained in:
parent
3dd9ce6b0c
commit
cbebbc43fd
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue