Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove temporary directory when TestWrite ends
  • Loading branch information
MatteoPologruto committed Jun 27, 2023
commit 933554a41c289ca5312d5654be6407a27e37d496
4 changes: 3 additions & 1 deletion commands/daemon/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ func TestWrite(t *testing.T) {
require.NoError(t, err)

tempDir := paths.TempDir()
testFolder, _ := tempDir.MkTempDir("testdata")
testFolder, err := tempDir.MkTempDir("testdata")
require.NoError(t, err)
defer testFolder.RemoveAll()

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