Skip to content

Commit 933554a

Browse files
Remove temporary directory when TestWrite ends
1 parent 2ef668c commit 933554a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

commands/daemon/settings_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ func TestWrite(t *testing.T) {
142142
require.NoError(t, err)
143143

144144
tempDir := paths.TempDir()
145-
testFolder, _ := tempDir.MkTempDir("testdata")
145+
testFolder, err := tempDir.MkTempDir("testdata")
146+
require.NoError(t, err)
147+
defer testFolder.RemoveAll()
146148

147149
// Verifies config files doesn't exist
148150
configFile := testFolder.Join("arduino-cli.yml")

0 commit comments

Comments
 (0)