appdash
appdash copied to clipboard
Use t.Cleanup instead of defer in Golang code tests
Using a proper defined cleanup function like
t.Cleanup(func () {
// do sth
})
is more explicit than just
defer func () {
// do sth
}
so let's use that approach.