Lower timeout

The tests usually complete in about 15 seconds, so let's lower the
timeout to fail a little faster in cases where we have hangs in
`pulumi` itself.
This commit is contained in:
Matt Ellis 2017-10-27 15:36:28 -07:00
parent 786e1b92e1
commit 51250c42db
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ vet:
.PHONY: test
test:
@$(ECHO) "\033[0;32mTEST:\033[0m"
go test -cover -parallel ${TESTPARALLELISM} ${PROJECT_PKGS}
go test -timeout 2m -cover -parallel ${TESTPARALLELISM} ${PROJECT_PKGS}
.PHONY: integrationtest
integrationtest:

View file

@ -129,7 +129,7 @@
<!-- Ignore the exit code (but retain it) so we can kill all the lingering node processes even when go test
fails. Otherwise, the AppVeyor job would hang until it reached the timeout -->
<Exec Command="go test -cover -parallel $(TestParallelism) .\examples"
<Exec Command="go test -timeout 2m -cover -parallel $(TestParallelism) .\examples"
IgnoreExitCode="true"
WorkingDirectory="$(RepoRootDirectory)">
<Output TaskParameter="ExitCode" PropertyName="GoTestExitCode" />