Skip to content

Commit fde1519

Browse files
committed
config/module: parallelize some things
1 parent 27564ff commit fde1519

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dev: config/y.go
99
@TF_DEV=1 sh -c "$(CURDIR)/scripts/build.sh"
1010

1111
test: config/y.go
12-
TF_ACC= go test $(TEST) $(TESTARGS) -timeout=10s
12+
TF_ACC= go test $(TEST) $(TESTARGS) -timeout=10s -parallel=4
1313

1414
testacc: config/y.go
1515
@if [ "$(TEST)" = "./..." ]; then \

config/module/detect_bitbucket_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import (
88
const testBBUrl = "https://bitbucket.org/hashicorp/tf-test-git"
99

1010
func TestBitBucketDetector(t *testing.T) {
11+
t.Parallel()
12+
1113
if _, err := http.Get(testBBUrl); err != nil {
1214
t.Log("internet may not be working, skipping BB tests")
1315
t.Skip()

config/module/get_hg_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ func TestHgGetter_impl(t *testing.T) {
2020
}
2121

2222
func TestHgGetter(t *testing.T) {
23+
t.Parallel()
24+
2325
if !testHasHg {
2426
t.Log("hg not found, skipping")
2527
t.Skip()
@@ -41,6 +43,8 @@ func TestHgGetter(t *testing.T) {
4143
}
4244

4345
func TestHgGetter_branch(t *testing.T) {
46+
t.Parallel()
47+
4448
if !testHasHg {
4549
t.Log("hg not found, skipping")
4650
t.Skip()

0 commit comments

Comments
 (0)