🔥 Delete temp files in testing code
This commit is contained in:
parent
b8fc873850
commit
25ed67b2e9
2 changed files with 6 additions and 4 deletions
|
|
@ -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]")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue