From d92b50f1a1397f2b5c6155e54167b8a370a2bb82 Mon Sep 17 00:00:00 2001 From: Leo Bayer Date: Fri, 2 Dec 2022 02:12:01 +0900 Subject: [PATCH] fix test: sleep needs to be guaranteed to be greater than aliveBypassWindowMs, not just equal --- src/test/java/com/zaxxer/hikari/pool/ExceptionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/zaxxer/hikari/pool/ExceptionTest.java b/src/test/java/com/zaxxer/hikari/pool/ExceptionTest.java index 72dbbc48..a5cb1756 100644 --- a/src/test/java/com/zaxxer/hikari/pool/ExceptionTest.java +++ b/src/test/java/com/zaxxer/hikari/pool/ExceptionTest.java @@ -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 = () -> {