mirror of https://github.com/jackc/pgx.git
parent
e318c27e26
commit
9e1a67c1bc
pgxpool
|
@ -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…
Reference in New Issue