diff --git a/Makefile b/Makefile index ec8a82500..7520a245a 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ dev: config/y.go @TF_DEV=1 sh -c "$(CURDIR)/scripts/build.sh" test: config/y.go - TF_ACC= go test $(TEST) $(TESTARGS) -timeout=10s + TF_ACC= go test $(TEST) $(TESTARGS) -timeout=10s -parallel=4 testacc: config/y.go @if [ "$(TEST)" = "./..." ]; then \ diff --git a/config/module/detect_bitbucket_test.go b/config/module/detect_bitbucket_test.go index 91dad2e59..92ce633b1 100644 --- a/config/module/detect_bitbucket_test.go +++ b/config/module/detect_bitbucket_test.go @@ -8,6 +8,8 @@ import ( const testBBUrl = "https://bitbucket.org/hashicorp/tf-test-git" func TestBitBucketDetector(t *testing.T) { + t.Parallel() + if _, err := http.Get(testBBUrl); err != nil { t.Log("internet may not be working, skipping BB tests") t.Skip() diff --git a/config/module/get_hg_test.go b/config/module/get_hg_test.go index 02260bd29..d7125bde2 100644 --- a/config/module/get_hg_test.go +++ b/config/module/get_hg_test.go @@ -20,6 +20,8 @@ func TestHgGetter_impl(t *testing.T) { } func TestHgGetter(t *testing.T) { + t.Parallel() + if !testHasHg { t.Log("hg not found, skipping") t.Skip() @@ -41,6 +43,8 @@ func TestHgGetter(t *testing.T) { } func TestHgGetter_branch(t *testing.T) { + t.Parallel() + if !testHasHg { t.Log("hg not found, skipping") t.Skip()