From fde151978ef5123aa2422fb862f7cf5bf6b13c60 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 16 Sep 2014 12:02:35 -0700 Subject: [PATCH] config/module: parallelize some things --- Makefile | 2 +- config/module/detect_bitbucket_test.go | 2 ++ config/module/get_hg_test.go | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ec8a825000..7520a245a7 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 91dad2e59e..92ce633b14 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 02260bd297..d7125bde21 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()