DEV Community

Discussion on: Auto-reset environment variables when testing in Go

Collapse
 
maxmcd profile image
Max McDonnell

You want "t.Cleanup()", not defer

Collapse
 
arxeiss profile image
Pavel Kutáč

Thanks for the tip. Will look at it