=== RUN TestRace race_test.go:13: x = 3 ================== WARNING: DATA RACE Write at 0x00c000138168 by goroutine 8: package/race.TestRace.func1() /src/github.com/jstemmer/go-junit-report/testdata/src/race/race_test.go:9 +0x39 Previous write at 0x00c000138168 by goroutine 7: package/race.TestRace() /src/github.com/jstemmer/go-junit-report/testdata/src/race/race_test.go:12 +0x105 testing.tRunner() /go-src/go1.18/src/testing/testing.go:1439 +0x213 testing.(*T).Run.func1() /go-src/go1.18/src/testing/testing.go:1486 +0x47 Goroutine 8 (running) created at: package/race.TestRace() /src/github.com/jstemmer/go-junit-report/testdata/src/race/race_test.go:8 +0xfb testing.tRunner() /go-src/go1.18/src/testing/testing.go:1439 +0x213 testing.(*T).Run.func1() /go-src/go1.18/src/testing/testing.go:1486 +0x47 Goroutine 7 (running) created at: testing.(*T).Run() /go-src/go1.18/src/testing/testing.go:1486 +0x724 testing.runTests.func1() /go-src/go1.18/src/testing/testing.go:1839 +0x99 testing.tRunner() /go-src/go1.18/src/testing/testing.go:1439 +0x213 testing.runTests() /go-src/go1.18/src/testing/testing.go:1837 +0x7e4 testing.(*M).Run() /go-src/go1.18/src/testing/testing.go:1719 +0xa71 main.main() _testmain.go:47 +0x2e4 ================== testing.go:1312: race detected during execution of test --- FAIL: TestRace (0.00s) === CONT testing.go:1312: race detected during execution of test FAIL exit status 1 FAIL package/race 0.005s