From 6c808347d7d085cca151bc0c07bc1a401c75e1da Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 27 Oct 2017 08:57:06 -0400 Subject: [PATCH] flag off registry ACC test Was missing the TF_ACC check --- config/module/registry_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/module/registry_test.go b/config/module/registry_test.go index 2c784ae5d..6387c1812 100644 --- a/config/module/registry_test.go +++ b/config/module/registry_test.go @@ -6,6 +6,7 @@ import ( "net/http" "net/http/httptest" "net/url" + "os" "testing" "time" @@ -108,9 +109,10 @@ func TestLookupModuleVersions(t *testing.T) { } } -func TestACCLookupModuleVersions(t *testing.T) { - server := mockTLSRegistry() - defer server.Close() +func TestAccLookupModuleVersions(t *testing.T) { + if os.Getenv("TF_ACC") == "" { + t.Skip() + } regDisco := disco.NewDisco() // test with and without a hostname