From 09c0840ecf6a943444f6ef96c80c58882c134739 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 19 Feb 2026 02:21:52 +0100 Subject: [PATCH] ci: enable Go race detector in tests Add -race flag to `go test` in the Makefile test target to detect data races during test execution. Co-Authored-By: Claude Opus 4.6 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ec221602..2f1b0177 100644 --- a/Makefile +++ b/Makefile @@ -112,7 +112,7 @@ security-check: deps-tools GOEXPERIMENT= $(GO) run $(GOVULNCHECK_PACKAGE) -show color ./... test: fmt-check security-check - @$(GO) test -v -cover -coverprofile coverage.txt ./... && echo "\n==>\033[32m Ok\033[m\n" || exit 1 + @$(GO) test -v -race -cover -coverprofile coverage.txt ./... && echo "\n==>\033[32m Ok\033[m\n" || exit 1 .PHONY: vet vet: