Skip to content

Commit

Permalink
Set timeout for tests on CI to 9 minutes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sargun committed Aug 12, 2019
1 parent cafcdee commit 65c5446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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

Expand Down

0 comments on commit 65c5446

Please sign in to comment.