From 1a73a49a4a7e4a61b9b0449420f34bc6a33985d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Garcia?= Date: Tue, 4 Apr 2023 23:07:41 -0300 Subject: [PATCH] Add a timeout for all tests --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3cd7040..0cc613c 100644 --- a/Makefile +++ b/Makefile @@ -9,10 +9,10 @@ test: setup go-mod-tidy $(GOBIN)/richgo test $(path) $(args) @( cd benchmarks ; $(GOBIN)/richgo test $(path) $(args) ) @( cd examples ; $(GOBIN)/richgo test $(path) $(args) ) - @( cd adapters/kpgx ; $(GOBIN)/richgo test $(path) $(args) ) - @( cd adapters/kmysql ; $(GOBIN)/richgo test $(path) $(args) ) - @( cd adapters/ksqlserver ; $(GOBIN)/richgo test $(path) $(args) ) - @( cd adapters/ksqlite3 ; $(GOBIN)/richgo test $(path) $(args) ) + @( cd adapters/kpgx ; $(GOBIN)/richgo test $(path) $(args) -timeout=20s ) + @( cd adapters/kmysql ; $(GOBIN)/richgo test $(path) $(args) -timeout=20s ) + @( cd adapters/ksqlserver ; $(GOBIN)/richgo test $(path) $(args) -timeout=20s ) + @( cd adapters/ksqlite3 ; $(GOBIN)/richgo test $(path) $(args) -timeout=20s ) bench: go-mod-tidy @make --no-print-directory -C benchmarks TIME=$(TIME) | tee benchmark.tmp