Wait longer in timing sensitive test

Less likely to fail on CI.
pull/761/head
Jack Christensen 2020-05-25 12:04:01 -05:00
parent e318c27e26
commit 9e1a67c1bc
1 changed files with 1 additions and 1 deletions

View File

@ -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())