From 12bd1c5f96085c96c3f81c414ff50b06b53c12a1 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 5 Apr 2019 10:57:47 -0700 Subject: [PATCH] increase timeout for tests to reduce flakiness in travis --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4c72465cb..1b84d0c9c 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ generate: deps ## Generate dynamically generated code gofmt -w command/plugin.go 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: 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 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: @echo "INFO: Packer deps are managed by govendor. See .github/CONTRIBUTING.md"