Skip to content

Commit e40559e

Browse files
committed
main: avoid race condition while running tests
1 parent 574ce8c commit e40559e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func runPlatTests(target string, matches []string, t *testing.T) {
7272
t.Parallel()
7373

7474
for _, path := range matches {
75+
path := path // avoid race condition in parallel tests
7576
switch {
7677
case target == "wasm":
7778
// testdata/gc.go is known not to work on WebAssembly

0 commit comments

Comments
 (0)