From bdae9cb86b513b652b10ca73eee8857c5eaa3f82 Mon Sep 17 00:00:00 2001 From: sneak Date: Sun, 9 Aug 2026 00:48:49 +0000 Subject: [PATCH] fix: run the test suite with -race make check/CI never exercised the race detector over this PR's concurrency (evictor goroutine, write-pressure channel, the new per-hash contentLock, concurrent store/evict). Minimal, scoped change: add -race to the existing go test invocation. Full suite is clean under it (make check passes; go test -race ./... completes in under 7s, well inside the 30s timeout). --- script/test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/test b/script/test index d869902..7192e5c 100755 --- a/script/test +++ b/script/test @@ -17,7 +17,7 @@ run_with_cgo_deps() { main() { cd "$ROOT" echo "Running tests..." - run_with_cgo_deps "CGO_ENABLED=1 go test -timeout 30s -v ./..." + run_with_cgo_deps "CGO_ENABLED=1 go test -timeout 30s -race -v ./..." } main "$@"