mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 12:07:54 +00:00
db: refactor postgres test helpers (#27811)
* db: refactor postgres test helpers * fix references to refactored test helper * fix references to refactored test helper * fix failing test
This commit is contained in:
committed by
GitHub
parent
39b99b2e05
commit
d6a588b8d2
@@ -22,7 +22,7 @@ func TestPostgreSQLBackend(t *testing.T) {
|
||||
// Use docker as pg backend if no url is provided via environment variables
|
||||
connURL := os.Getenv("PGURL")
|
||||
if connURL == "" {
|
||||
cleanup, u := postgresql.PrepareTestContainer(t, "11.1")
|
||||
cleanup, u := postgresql.PrepareTestContainer(t)
|
||||
defer cleanup()
|
||||
connURL = u
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user