Add a timeout for all tests

pull/36/head
Vinícius Garcia 2023-04-04 23:07:41 -03:00
parent 84b4b86383
commit 1a73a49a4a
1 changed files with 4 additions and 4 deletions

View File

@ -9,10 +9,10 @@ test: setup go-mod-tidy
$(GOBIN)/richgo test $(path) $(args) $(GOBIN)/richgo test $(path) $(args)
@( cd benchmarks ; $(GOBIN)/richgo test $(path) $(args) ) @( cd benchmarks ; $(GOBIN)/richgo test $(path) $(args) )
@( cd examples ; $(GOBIN)/richgo test $(path) $(args) ) @( cd examples ; $(GOBIN)/richgo test $(path) $(args) )
@( cd adapters/kpgx ; $(GOBIN)/richgo test $(path) $(args) ) @( cd adapters/kpgx ; $(GOBIN)/richgo test $(path) $(args) -timeout=20s )
@( cd adapters/kmysql ; $(GOBIN)/richgo test $(path) $(args) ) @( cd adapters/kmysql ; $(GOBIN)/richgo test $(path) $(args) -timeout=20s )
@( cd adapters/ksqlserver ; $(GOBIN)/richgo test $(path) $(args) ) @( cd adapters/ksqlserver ; $(GOBIN)/richgo test $(path) $(args) -timeout=20s )
@( cd adapters/ksqlite3 ; $(GOBIN)/richgo test $(path) $(args) ) @( cd adapters/ksqlite3 ; $(GOBIN)/richgo test $(path) $(args) -timeout=20s )
bench: go-mod-tidy bench: go-mod-tidy
@make --no-print-directory -C benchmarks TIME=$(TIME) | tee benchmark.tmp @make --no-print-directory -C benchmarks TIME=$(TIME) | tee benchmark.tmp