Skip to content

Clean up temporary files on exit #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 10, 2023
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
Add test to check if fwuploader dir is correctly removed on exit
  • Loading branch information
MatteoPologruto committed Jan 9, 2023
commit b3306eb36a074972e7c899ed5226053694564b7a
2 changes: 2 additions & 0 deletions indexes/indexes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"testing"

"github.com/arduino/arduino-cli/arduino/cores/packageindex"
"github.com/arduino/arduino-fwuploader/cli/globals"
"github.com/arduino/go-paths-helper"
"github.com/stretchr/testify/require"
)
Expand All @@ -47,4 +48,5 @@ func TestGetFirmwareIndex(t *testing.T) {
index, err := GetFirmwareIndex()
require.NoError(t, err)
require.NotNil(t, index)
require.NoDirExists(t, globals.FwUploaderPath.String())
}