Skip to content

Commit 8785fe6

Browse files
committed
change the config test
1 parent 806b5e9 commit 8785fe6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/config_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func getDefaultConfiguration() *Config {
2121
}{Default: "cpp"},
2222
}
2323
}
24+
2425
func getConfigPath() string {
2526
tempDir := os.TempDir()
2627
return path.Join(tempDir, "config.yaml")
@@ -38,7 +39,7 @@ func createFakeConfigFile() error {
3839
return err
3940
}
4041
// write the fake configuration yaml to the file
41-
err = ioutil.WriteFile(configPath, buffer.Bytes(), 0644)
42+
err = ioutil.WriteFile(configPath, buffer.Bytes(), 777)
4243
if err != nil {
4344
return err
4445
}

0 commit comments

Comments
 (0)