🔥 Delete temp files in testing code

This commit is contained in:
Dan Jones 2024-09-15 12:02:22 -05:00
commit 25ed67b2e9
2 changed files with 6 additions and 4 deletions

View file

@ -15,6 +15,7 @@ func TestLoadTomlMissing(t *testing.T) {
func TestLoadTomlGood(t *testing.T) {
tmp, _ := os.CreateTemp("", "*.toml")
defer os.Remove(tmp.Name())
defer tmp.Close()
fmt.Fprintln(tmp, `name = "Cool"`)
fmt.Fprintln(tmp, "[conn]")