From 93048951e85541c7448f24277715b097c53b5dae Mon Sep 17 00:00:00 2001 From: "vitess-bot[bot]" <108069721+vitess-bot[bot]@users.noreply.github.com> Date: Tue, 7 Oct 2025 19:28:05 +0200 Subject: [PATCH] connpool: Bump the hang detection timeout to 1 second. (#18722) Signed-off-by: Arthur Schreiber --- go/pools/smartconnpool/pool_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/pools/smartconnpool/pool_test.go b/go/pools/smartconnpool/pool_test.go index 8e1a7ff94d6..d2055e6397d 100644 --- a/go/pools/smartconnpool/pool_test.go +++ b/go/pools/smartconnpool/pool_test.go @@ -1206,7 +1206,7 @@ func TestGetSpike(t *testing.T) { func TestCloseDuringWaitForConn(t *testing.T) { ctx := context.Background() goRoutineCnt := 50 - getTimeout := 300 * time.Millisecond + getTimeout := 2000 * time.Millisecond for range 50 { hung := make(chan (struct{}), goRoutineCnt) @@ -1221,7 +1221,7 @@ func TestCloseDuringWaitForConn(t *testing.T) { wg := sync.WaitGroup{} var count atomic.Int64 - fmt.Println("Starting TestCloseDuringGetAndPut") + fmt.Println("Starting TestCloseDuringWaitForConn") // Spawn multiple goroutines to perform Get and Put operations, but only // allow connections to be checked out until `closed` has been set to true.