Skip to content

Commit

Permalink
fix(makefile): increase timeout for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Delberghe <open-source@orandin.fr>
  • Loading branch information
orandin authored and rclsilver committed Oct 18, 2022
1 parent 97625d6 commit 51a2a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 51a2a6b

Please sign in to comment.