From 5503a48ffa0ea97ee761f13f49c755c76adef193 Mon Sep 17 00:00:00 2001 From: AnyCPU Date: Mon, 16 Feb 2026 15:31:35 +0200 Subject: [PATCH] Add test-race Makefile target for race condition detection --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d250f979..68c01eb5 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: build test bench docker +.PHONY: build test test-race bench docker build: CGO_ENABLED=0 go build -trimpath -o bin/ ./cmd/... @@ -6,6 +6,9 @@ build: test: go test ./... +test-race: + go test -race ./... + lint: golangci-lint run