Skip to content

Commit

Permalink
HORNETQ-1513 - [Testsuite] Replicated failover tests fails on slower …
Browse files Browse the repository at this point in the history
…machines
  • Loading branch information
MartinStyk committed Jan 26, 2016
1 parent e819b64 commit fabbf37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,13 @@ public void testWithoutUsingTheBackup() throws Exception
backupServer.stop(); // Backup stops!
beforeRestart(backupServer);
backupServer.start();
assertTrue(backupServer.getServer().waitForBackupSync(10, TimeUnit.SECONDS));
assertTrue(backupServer.getServer().waitForBackupSync(40, TimeUnit.SECONDS));
backupServer.stop(); // Backup stops!

liveServer.stop();
beforeRestart(liveServer);
liveServer.start();
liveServer.getServer().waitForActivation(10, TimeUnit.SECONDS);
liveServer.getServer().waitForActivation(40, TimeUnit.SECONDS);

ClientSession session2 = createSession(sf, false, false);
session2.start();
Expand Down Expand Up @@ -727,7 +727,7 @@ private void simpleReplication(boolean doFailBack) throws Exception
adaptLiveConfigForReplicatedFailBack(liveServer.getServer().getConfiguration());
beforeRestart(liveServer);
liveServer.start();
assertTrue("live initialized...", liveServer.getServer().waitForActivation(15, TimeUnit.SECONDS));
assertTrue("live initialized...", liveServer.getServer().waitForActivation(40, TimeUnit.SECONDS));
int i = 0;
while (backupServer.isStarted() && i++ < 100)
{
Expand All @@ -740,7 +740,7 @@ private void simpleReplication(boolean doFailBack) throws Exception
backupServer.stop();
beforeRestart(backupServer);
backupServer.start();
assertTrue(backupServer.getServer().waitForActivation(10, TimeUnit.SECONDS));
assertTrue(backupServer.getServer().waitForActivation(40, TimeUnit.SECONDS));
}

ClientSession session2 = createSession(sf, false, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected void crash(ClientSession... sessions) throws Exception
protected void crash(boolean waitFailure, ClientSession... sessions) throws Exception
{
syncDelay.deliverUpToDateMsg();
waitForBackup(null, 5);
waitForBackup(null, 30);
super.crash(waitFailure, sessions);
}

Expand Down

0 comments on commit fabbf37

Please sign in to comment.