mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 03:58:01 +00:00
Purge opened connections on retries during tests (#4452)
This commit is contained in:
committed by
GitHub
parent
783a5c3422
commit
6fc57a91d8
@@ -152,6 +152,7 @@ func testPostgresDB(t testing.TB) (string, func()) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer db.Close()
|
||||
return db.Ping()
|
||||
}); err != nil {
|
||||
t.Fatalf("postgresdb: could not connect: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user