testing: Don't silently ignore nested t.Cleanup calls #41085
Labels
FrozenDueToAge
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
)?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?
Call
t.Cleanup
from inside of a cleanup function,What did you expect to see?
Either the newly added
Cleanup
function to be run immediately after the initial clean up (to respect LIFO order) or for theCleanup
call to cause the test to be marked as failed.What did you see instead?
The nested cleanup function is ignored silently,
The text was updated successfully, but these errors were encountered: