Liked Why to prefer `t.Cleanup` to `defer` in tests with subtests using `t.Parallel`
Post details
Go&rsquo;s <code>defer</code> and <code>t.Cleanup</code> have similar semantics, but there&rsquo;s a good reason to prefer the use of <code>t.Cleanup</code> specifically in the presence of parallel subtests.

This post was filed under likes.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.