diff --git a/main_test.go b/main_test.go index 2a9c7828..188f318e 100644 --- a/main_test.go +++ b/main_test.go @@ -72,6 +72,8 @@ func runPlatTests(target string, matches []string, t *testing.T) { t.Parallel() for _, path := range matches { + path := path // redefine to avoid race condition + switch { case target == "wasm": // testdata/gc.go is known not to work on WebAssembly