Skip to content

Commit

Permalink
test gomaxprocs
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Feb 2, 2021
1 parent b0a6aad commit 469cee7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ build: fmtcheck
test: fmtcheck
go test -i $(TEST) || exit 1
echo $(TEST) | \
xargs -t -n4 go test $(TESTARGS) -timeout=120s -parallel=4
xargs -t -n4 go test $(TESTARGS) -timeout=120s -parallel=1

testacc: fmtcheck
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m -parallel=1

vet:
@echo "go vet ."
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/acceptance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ docker run -d -p "$DNS_UPDATE_PORT:53/udp" \
-e BIND_DOMAIN_REVERSE=${DNS_DOMAIN_REVERSE} \
-e BIND_INSECURE=true \
--name "$DOCKER_CONTAINER_NAME" drebes/bind || failed
GO111MODULE=on GOFLAGS=-mod=vendor TESTARGS=-run=TestAccDnsSRV make testacc TEST=./internal/provider || failed
GO111MODULE=on GOFLAGS=-mod=vendor GOMAXPROCS=1 make testacc TEST=./internal/provider || failed
cleanup_docker

# Run with authentication
Expand All @@ -43,5 +43,5 @@ docker run -d -p "$DNS_UPDATE_PORT:53/udp" \
-e BIND_KEY_ALGORITHM=${DNS_UPDATE_KEYALGORITHM} \
-e BIND_KEY_SECRET=${DNS_UPDATE_KEYSECRET} \
--name "$DOCKER_CONTAINER_NAME" drebes/bind || failed
GO111MODULE=on GOFLAGS=-mod=vendor TESTARGS=-run=TestAccDnsSRV make testacc TEST=./internal/provider || failed
GO111MODULE=on GOFLAGS=-mod=vendor GOMAXPROCS=1 make testacc TEST=./internal/provider || failed
cleanup_docker

0 comments on commit 469cee7

Please sign in to comment.