We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fa46ed commit dffd6f3Copy full SHA for dffd6f3
commands/commands_test.go
@@ -118,6 +118,10 @@ func makeTempDataDir(t *testing.T) func() {
118
os.Setenv("ARDUINO_DATA_DIR", tmp.String())
119
currDataDir = tmp
120
fmt.Printf("ARDUINO_DATA_DIR = %s\n", os.Getenv("ARDUINO_DATA_DIR"))
121
+
122
+ err = tmp.RemoveAll() // To test if the data dir is automatically created
123
+ require.NoError(t, err)
124
125
return func() {
126
os.Unsetenv("ARDUINO_DATA_DIR")
127
currDataDir = nil
0 commit comments