mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Clean up container on connection failure, switch to ory/dockertest on package postgresql (#5050)
This commit is contained in:
committed by
Brian Kassouf
parent
6977aa70f1
commit
ece7569aca
@@ -60,6 +60,7 @@ func prepareMongoDBTestContainer(t *testing.T) (cleanup func(), retURL string) {
|
||||
session.SetSocketTimeout(1 * time.Minute)
|
||||
return session.Ping()
|
||||
}); err != nil {
|
||||
cleanup()
|
||||
t.Fatalf("Could not connect to mongo docker container: %s", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user