From 344f309cbe120bab2e40abca0e2971705a494173 Mon Sep 17 00:00:00 2001 From: Harshit Gangal Date: Wed, 19 Feb 2025 10:44:17 +0530 Subject: [PATCH] test: fix test setup for connect delay Signed-off-by: Harshit Gangal --- go/pools/smartconnpool/pool_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/pools/smartconnpool/pool_test.go b/go/pools/smartconnpool/pool_test.go index 1cb15ce2680..1b45d1d2463 100644 --- a/go/pools/smartconnpool/pool_test.go +++ b/go/pools/smartconnpool/pool_test.go @@ -620,7 +620,7 @@ func TestConnReopen(t *testing.T) { assert.GreaterOrEqual(t, p.Metrics.IdleClosed(), int64(1)) // adding connection delay - state.chaos.delayConnect = 3 * time.Second + state.chaos.delayConnect = 1500 * time.Millisecond // wait enough to reach idle timeout and connect timeout. time.Sleep(3 * time.Second) assert.Zero(t, p.Active())