testing: panic + Skip is not reported as a failure, though Error + Skip is #53259
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?Also reproduced on Go Playground using 1.17, 1.18, and latest dev branch.
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?
Called
t.Skip
inside of a cleanup function, for a test that failed due to a panic.See playground for other similar tests and how they behave:
https://go.dev/play/p/zK1cXf5iAG5
What did you expect to see?
Expected the test to be marked as failed due to the panic.
What did you see instead?
The test was marked as skipped, and the cleanup function (or defer) reported the test as not failed.
The text was updated successfully, but these errors were encountered: