From adb54d06ce15980e31951713ee44865f9a2304bb Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Wed, 12 Apr 2017 18:03:43 -0500 Subject: [PATCH] Tweak timing sensitive test --- conn_pool_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn_pool_test.go b/conn_pool_test.go index 9d03fad3..825638b6 100644 --- a/conn_pool_test.go +++ b/conn_pool_test.go @@ -297,7 +297,7 @@ func TestPoolWithoutAcquireTimeoutSet(t *testing.T) { // ... then try to consume 1 more. It should hang forever. // To unblock it we release the previously taken connection in a goroutine. stopDeadWaitTimeout := 5 * time.Second - timer := time.AfterFunc(stopDeadWaitTimeout, func() { + timer := time.AfterFunc(stopDeadWaitTimeout+100*time.Millisecond, func() { releaseAllConnections(pool, allConnections) }) defer timer.Stop()