testing: data race is attributed to wrong test in -json formatting #58634
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Reproducible with these versions:
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm running racy tests with
-race -json
.The reproducing tests are available here https://github.com/vearutop/teststat/tree/faulty-tests.
imperfect_test.go
What did you expect to see?
Data race has reference to
TestThatIsRacy
.What did you see instead?
Data race has reference to another test (
TestThatFlakesToo
).Part of
run.jsonl
:The text was updated successfully, but these errors were encountered: