cmd/fix: incorrect loop variable aliasing in TestRewrite #35632
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
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?
git clone https://go.googlesource.com/go.git
cd src; ./all.bash
cmd/fix/context_test.go
to ensure that the test case should FAIL.go test
from thesrc/cmd/fix
directory.notice that the test case passes, even though it should fail, given that we edited the expected output of the context rewrite rule.
remove call to
t.Parallel
incmd/fix/main_test.go
go test
from thesrc/cmd/fix
directory.What did you expect to see?
A failed test case (after having modified the expected output of the
context_test.go
test case).What did you see instead?
Test cases passing without error.
The text was updated successfully, but these errors were encountered: