mirror of
https://github.com/jackc/pgx.git
synced 2025-05-05 23:21:11 +00:00
Increase wait time in timing sensitive test
This commit is contained in:
parent
09c360f8aa
commit
885f39c368
@ -389,7 +389,7 @@ func TestPoolBackgroundChecksMaxConnIdleTime(t *testing.T) {
|
||||
c, err := db.Acquire(context.Background())
|
||||
require.NoError(t, err)
|
||||
c.Release()
|
||||
time.Sleep(config.HealthCheckPeriod + 50*time.Millisecond)
|
||||
time.Sleep(config.HealthCheckPeriod + 100*time.Millisecond)
|
||||
|
||||
stats := db.Stat()
|
||||
assert.EqualValues(t, 0, stats.TotalConns())
|
||||
|
Loading…
x
Reference in New Issue
Block a user