fix test: sleep needs to be guaranteed to be greater than aliveBypassWindowMs, not just equal

pull/2009/head
Leo Bayer 2 years ago
parent a7f9a4b2f5
commit d92b50f1a1

@ -139,7 +139,7 @@ public class ExceptionTest
// force the last access of this connection to be older than 'aliveBypassWindowMs'
// thus forcing isConnectionDead to be called (and setNetworkTimeout)
Thread.sleep(500);
Thread.sleep(505);
AtomicInteger callCount = new AtomicInteger();
StubConnection.networkTimeoutSetter = () -> {

Loading…
Cancel
Save