make: increase test timeout to 20 minutes

This commit is contained in:
Oliver Gugger 2021-05-18 13:26:45 +02:00
parent b5fd915162
commit 825ff779a1
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -81,7 +81,7 @@ check: unit
unit: unit:
@$(call print, "Running unit tests.") @$(call print, "Running unit tests.")
$(GOLIST) | $(XARGS) env $(GOTEST) $(GOLIST) | $(XARGS) env $(GOTEST) -test.timeout=20m
unit-cover: $(GOACC_BIN) unit-cover: $(GOACC_BIN)
@$(call print, "Running unit coverage tests.") @$(call print, "Running unit coverage tests.")
@ -89,7 +89,7 @@ unit-cover: $(GOACC_BIN)
unit-race: unit-race:
@$(call print, "Running unit race tests.") @$(call print, "Running unit race tests.")
env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOLIST) | $(XARGS) env $(GOTEST) -race env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(GOLIST) | $(XARGS) env $(GOTEST) -race -test.timeout=20m
# ========= # =========
# UTILITIES # UTILITIES