From 51a2a6b91a8aaa2e1ef488bb08858846e4c9903f Mon Sep 17 00:00:00 2001 From: Simon Delberghe Date: Mon, 17 Oct 2022 22:58:24 +0200 Subject: [PATCH] fix(makefile): increase timeout for tests Signed-off-by: Simon Delberghe --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 47f86bd8..bd1926b2 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ MAIN_LOCATION = ./cmd TEST_LOCATION = ./... # timeout for go test is here to prevent tests running infinitely if one runResolution leads to a step that never recovers (e.g. missing push on a stepChan) -# 15 seconds per unit tests should be enough -TEST_CMD = go test -count=1 -timeout 15s -v -cover -p 1 ${TEST_LOCATION} +# 30 seconds per unit tests should be enough +TEST_CMD = go test -count=1 -timeout 30s -v -cover -p 1 ${TEST_LOCATION} TEST_CMD_COV = ${TEST_CMD} -covermode=count -coverprofile=coverage.out SOURCE_FILES = $(shell find ./ -type f -name "*.go" | grep -v _test.go)