increase timeout for tests to reduce flakiness in travis

This commit is contained in:
Megan Marsh 2019-04-05 10:57:47 -07:00
parent 3777f7d34a
commit 12bd1c5f96
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ generate: deps ## Generate dynamically generated code
gofmt -w command/plugin.go gofmt -w command/plugin.go
test: fmt-check mode-check vet ## Run unit tests test: fmt-check mode-check vet ## Run unit tests
@go test $(TEST) $(TESTARGS) -timeout=2m @go test $(TEST) $(TESTARGS) -timeout=3m
# testacc runs acceptance tests # testacc runs acceptance tests
testacc: deps generate ## Run acceptance tests testacc: deps generate ## Run acceptance tests
@ -110,7 +110,7 @@ testacc: deps generate ## Run acceptance tests
PACKER_ACC=1 go test -v $(TEST) $(TESTARGS) -timeout=45m PACKER_ACC=1 go test -v $(TEST) $(TESTARGS) -timeout=45m
testrace: fmt-check mode-check vet ## Test with race detection enabled testrace: fmt-check mode-check vet ## Test with race detection enabled
@go test -race $(TEST) $(TESTARGS) -timeout=2m -p=8 @go test -race $(TEST) $(TESTARGS) -timeout=3m -p=8
updatedeps: updatedeps:
@echo "INFO: Packer deps are managed by govendor. See .github/CONTRIBUTING.md" @echo "INFO: Packer deps are managed by govendor. See .github/CONTRIBUTING.md"