Skip to content

Commit fa1c327

Browse files
committed
[chore] check go tests race
Signed-off-by: Alexey Paschenko <[email protected]>
1 parent 0038647 commit fa1c327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ bin/yq: bin ## Install yq deps for update-patchversion script.
146146
.PHONY: tests-modules dmt-lint tests-openapi tests-controller tests-webhooks
147147
tests-modules: ## Run unit tests for modules hooks and templates.
148148
##~ Options: FOCUS=module-name
149-
go test -timeout=${TESTS_TIMEOUT} -vet=off ${TESTS_PATH}
149+
go test -cover -race -timeout=${TESTS_TIMEOUT} -vet=off ${TESTS_PATH}
150150

151151
dmt-lint:
152152
docker run --rm -v ${PWD}:/deckhouse-src --user $(id -u):$(id -g) ubuntu /deckhouse-src/tools/dmt-lint.sh
@@ -156,7 +156,7 @@ tests-openapi: ## Run tests against modules openapi values schemas.
156156
go test -vet=off ./testing/openapi_cases/
157157

158158
tests-controller: ## Run deckhouse-controller unit tests.
159-
go test ./deckhouse-controller/... -v
159+
go test -cover -race ./deckhouse-controller/... -v
160160

161161
tests-webhooks: bin/yq ## Run python webhooks unit tests.
162162
./testing/webhooks/run.sh

0 commit comments

Comments
 (0)