Skip to content

Commit

Permalink
test: fix test setup for connect delay
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
  • Loading branch information
harshit-gangal committed Feb 19, 2025
1 parent 576a847 commit 344f309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/pools/smartconnpool/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 344f309

Please sign in to comment.