testing: silly typo in subtests causes hard-to-understand error message #21175
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What did you do?
Run
go test
on this (wrong) test file. The subtest is wrongfully referring to the outer testing.T:What did you expect to see?
Perhaps a somewhat informative error message. At least not a panic(nil) leading to a long debug session.
What did you see instead?
A very confusing
panic(nil)
:Does this issue reproduce with the latest release (go1.8.3)?
Yes. Also with go1.9rc1.
System details
The text was updated successfully, but these errors were encountered: