From a19068287901421f3112b30b5ff7b2af9e115a64 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 10 Jun 2026 23:54:01 +0300 Subject: Enable -race flag in mage Test target The Test target now runs `go test -race -v ./...` so the race detector catches data races during the normal test workflow. The full suite (1017 tests) passes cleanly under the race detector. Co-Authored-By: Claude Opus 4.8 --- Magefile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Magefile.go') diff --git a/Magefile.go b/Magefile.go index 71fdc1f..b1393be 100644 --- a/Magefile.go +++ b/Magefile.go @@ -255,12 +255,12 @@ func atomicInstallBinary(src, dstDir string) error { return nil } -// Test runs the test suite. +// Test runs the test suite with the race detector enabled to catch data races. func Test() error { if err := sh.RunV("go", "clean", "-testcache"); err != nil { return err } - return sh.RunV("go", "test", "-v", "./...") + return sh.RunV("go", "test", "-race", "-v", "./...") } // Coverage generates a combined coverage profile across all packages (cross-package coverage). -- cgit v1.2.3