From 655617ed6a0d5c88c0c31ae1766fcfa8330b8bdd Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Mon, 5 Sep 2016 17:09:11 -0700 Subject: [PATCH] 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. --- builtin/providers/postgresql/provider_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/builtin/providers/postgresql/provider_test.go b/builtin/providers/postgresql/provider_test.go index 9596a0089..697c83329 100644 --- a/builtin/providers/postgresql/provider_test.go +++ b/builtin/providers/postgresql/provider_test.go @@ -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") - } }