Skip to content

Commit 8bf54e1

Browse files
authored
Merge pull request conforma#2698 from cuipinghuo/sl-test-timeout
fix: increase unit test timeout to 10s in Makefile
2 parents 5bbb01c + c17a032 commit 8bf54e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ TEST_OUTPUT_FILTER=grep -vE '0.0% of statements|\[no test files\]'
102102
.PHONY: test
103103
test: ## Run all unit tests
104104
@echo "Unit tests:"
105-
@set -o pipefail && go test -race -covermode=atomic -coverprofile=coverage-unit.out -timeout 1s -tags=unit ./... | $(TEST_OUTPUT_FILTER)
105+
# The timeout here was previously 1 second, but we've made it longer because we were seeing timeouts when testing with Sealights
106+
@set -o pipefail && go test -race -covermode=atomic -coverprofile=coverage-unit.out -timeout 10s -tags=unit ./... | $(TEST_OUTPUT_FILTER)
106107
@echo "Integration tests:"
107108
@set -o pipefail && go test -race -covermode=atomic -coverprofile=coverage-integration.out -timeout 15s -tags=integration ./... | $(TEST_OUTPUT_FILTER)
108109
# Given the nature of generative tests the test timeout is increased from 500ms

0 commit comments

Comments
 (0)