On 15/01/2008, Gordon Sim <[EMAIL PROTECTED]> wrote: > I noticed the following failure on the M2 branch. It seems to be > repeatable for me; anyone else seeing this? What hardware, JVM, OS are you using?
> Can anyone shed any light on why this assertion is there? The test(of which there are two) is to verify that the delay between failover attempts is in place. The test should make 5 reconnection attempts with a 2second delay before each attempt hence 10 seconds should be waited. But Thread.sleep(2000) is not always 2000ms. I would say seeing 6s as you are constitutes some well dodgy Thread.sleep timings. > ------------------------------------------------------------------------------- > Test set: org.apache.qpid.server.failover.FailoverMethodTest > ------------------------------------------------------------------------------- > Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 14.059 > sec <<< F > AILURE! > testFailoverRoundRobinDelay(org.apache.qpid.server.failover.FailoverMethodTest) > Time elapsed: 6.044 sec <<< FAILURE! > junit.framework.AssertionFailedError: Failover took less than 9.5 > seconds:6041 > at junit.framework.Assert.fail(Assert.java:47) > at junit.framework.Assert.assertTrue(Assert.java:20) > at > org.apache.qpid.server.failover.FailoverMethodTest.testFailoverRoundR > obinDelay(FailoverMethodTest.java:83) > > -- Martin Ritchie
