Replace defer with t.Cleanup in tests
The following discussion from !1021 (merged) should be addressed:
-
@proglottis started a discussion: (+3 comments) deferin tests are probably here because we didn't havet.Cleanupbefore. It's also not just forParallel()tests, IMO it gives a clear idea that theStopmethod needs to be called as part of cleaning up after a test, so I'd also suggest usingt.Cleanupin the future.