mirror of
https://github.com/jackc/pgx.git
synced 2025-04-27 13:14:32 +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())
|
c, err := db.Acquire(context.Background())
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
c.Release()
|
c.Release()
|
||||||
time.Sleep(config.MaxConnLifetime + 50*time.Millisecond)
|
time.Sleep(config.MaxConnLifetime + 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