mirror of
https://github.com/jackc/pgx.git
synced 2025-05-06 15:39:48 +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())
|
c, err := db.Acquire(context.Background())
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
c.Release()
|
c.Release()
|
||||||
time.Sleep(config.HealthCheckPeriod + 50*time.Millisecond)
|
time.Sleep(config.HealthCheckPeriod + 100*time.Millisecond)
|
||||||
|
|
||||||
stats := db.Stat()
|
stats := db.Stat()
|
||||||
assert.EqualValues(t, 0, stats.TotalConns())
|
assert.EqualValues(t, 0, stats.TotalConns())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user