From e5593ea5ed57ddeab99474c45592baed1127b8fb Mon Sep 17 00:00:00 2001 From: Aidan Skinner Date: Wed, 30 Jan 2008 16:37:06 +0000 Subject: QPID-766: shorten delay git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@616809 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/qpid/server/failover/FailoverMethodTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/systests/src') diff --git a/java/systests/src/main/java/org/apache/qpid/server/failover/FailoverMethodTest.java b/java/systests/src/main/java/org/apache/qpid/server/failover/FailoverMethodTest.java index 1f2d11b045..9b2a3a6e28 100644 --- a/java/systests/src/main/java/org/apache/qpid/server/failover/FailoverMethodTest.java +++ b/java/systests/src/main/java/org/apache/qpid/server/failover/FailoverMethodTest.java @@ -78,9 +78,9 @@ public class FailoverMethodTest extends TestCase implements ExceptionListener long end = System.currentTimeMillis(); //Failover should take less that 10 seconds. - // This is calculated by vm://:1 two retries left after initial connection (4s) + // This is calculated by vm://:1 two retries left after initial connection // localhost get three retries so (6s) so 10s in total for connection dropping - assertTrue("Failover took less than 9.5 seconds:"+(end - start), (end - start) > 6000); + assertTrue("Failover took less than 6 seconds:"+(end - start), (end - start) > 6000); // The sleep method is not 100% accurate under windows so with 5 sleeps and a 10ms accuracy then there is // the potential for the tests to finish in 500ms sooner than the predicted 10s. -- cgit v1.2.1