Remove the PGPASSWORD requirement for tests.
If they're required and the value is missing, the test will fail. There's no need to enforce that in the test itself.
This commit is contained in:
parent
ec130d538c
commit
655617ed6a
|
@ -36,7 +36,4 @@ func testAccPreCheck(t *testing.T) {
|
|||
if v := os.Getenv("PGUSER"); v == "" {
|
||||
t.Fatal("PGUSER must be set for acceptance tests")
|
||||
}
|
||||
if v := os.Getenv("PGPASSWORD"); v == "" && host != "localhost" {
|
||||
t.Fatal("PGPASSWORD must be set for acceptance tests if PGHOST is not localhost")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue