We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 504ce7e commit 870fac5Copy full SHA for 870fac5
config/config_test.go
@@ -66,11 +66,8 @@ func TestIfHomeDoesNotContainConfigTheDefaultConfigAreCopied(t *testing.T) {
66
os.Setenv("HOME", "./testdata/home-without-config")
67
68
os.Unsetenv("ARDUINO_CREATE_AGENT_CONFIG")
69
- // we want to test the case when the config does not exist in the home directory
70
- err := os.Remove("./testdata/home-without-config/.config/ArduinoCreateAgent/config.ini")
71
- if err != nil {
72
- t.Fatal(err)
73
- }
+ // Clean the home folder by deleting the config.ini
+ os.Remove("./testdata/home-without-config/.config/ArduinoCreateAgent/config.ini")
74
75
configPath := GetConfigPath()
76
0 commit comments