From 65c5446c94a37e856e0042f58a4ecabe81770340 Mon Sep 17 00:00:00 2001 From: Sargun Dhillon Date: Wed, 7 Aug 2019 14:04:25 -0700 Subject: [PATCH] Set timeout for tests on CI to 9 minutes Right now, if the tests get stuck (on CI), they are terminated after 10 minutes. This means as well that we get 0 output about what went wrong. Instead, this triggers a panic after 9 minutes on CI. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7f17a1192..0bc52a490 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ ifndef CI else @echo "Testing in CI..." $Q mkdir -p test - $Q ( GODEBUG=cgocheck=2 go test -v $(allpackages); echo $$? ) | \ + $Q ( GODEBUG=cgocheck=2 go test -timeout=9m -v $(allpackages); echo $$? ) | \ tee test/output.txt | sed '$$ d'; exit $$(tail -1 test/output.txt) endif