mirror of
https://github.com/jackc/pgx.git
synced 2025-05-28 18:22:15 +00:00
Wait longer in timing sensitive test
Less likely to fail on CI.
This commit is contained in:
parent
e318c27e26
commit
9e1a67c1bc
@ -278,7 +278,7 @@ func TestPoolBackgroundChecksMaxConnLifetime(t *testing.T) {
|
||||
c, err := db.Acquire(context.Background())
|
||||
require.NoError(t, err)
|
||||
c.Release()
|
||||
time.Sleep(config.MaxConnLifetime + 50*time.Millisecond)
|
||||
time.Sleep(config.MaxConnLifetime + 100*time.Millisecond)
|
||||
|
||||
stats := db.Stat()
|
||||
assert.EqualValues(t, 0, stats.TotalConns())
|
||||
|
Loading…
x
Reference in New Issue
Block a user