testing: go test fails with -race and test that calls flag.Parse() (go 1.13) #34073
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?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?
Go 1.13 regression:
go test -race
fails if test callsflag.Parse()
and additional test-flags are providedSteps to reproduce:
On Go 1.12
On Go 1.13, running the test fails
The problem looks related to calling
flag.Parse()
. Trying an example on Go 1.13 on a test withoutflag.Parse()
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: