From ae522ab36473ab91f12af3b9d0ee0afced61c02c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 16 Mar 2025 02:07:42 +0900 Subject: [PATCH] test: run go tests with race detector Signed-off-by: Ophestra --- test/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default.nix b/test/default.nix index bf3e007..068ca70 100644 --- a/test/default.nix +++ b/test/default.nix @@ -22,7 +22,7 @@ nixosTest { chmod -R +w "$WORK" cd "$WORK" ${self.packages.${system}.fhs}/bin/fortify-fhs -c \ - 'go generate ./... && go test ./... && touch /tmp/go-test-ok' + 'go generate ./... && go test ${if withRace then "-race" else "-count 16"} ./... && touch /tmp/go-test-ok' '') ];