We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b222674 commit ebe3865Copy full SHA for ebe3865
1 file changed
cmd/analyze_test.go
@@ -367,9 +367,9 @@ func TestCheckIfConfigExistsAndIsNeeded(t *testing.T) {
367
err = checkIfConfigExistsAndIsNeeded(tt.toolName, tt.cliLocalMode)
368
369
// Clean up any files that might have been created by the function under test
370
- if !tt.configFileExists && toolConfigFileName[tt.toolName] != "" {
+ if !tt.configFileExists && constants.ToolConfigFileNames[tt.toolName] != "" {
371
toolsConfigDir := config.Config.ToolsConfigDirectory()
372
- configPath := filepath.Join(toolsConfigDir, toolConfigFileName[tt.toolName])
+ configPath := filepath.Join(toolsConfigDir, constants.ToolConfigFileNames[tt.toolName])
373
if _, statErr := os.Stat(configPath); statErr == nil {
374
os.Remove(configPath)
375
}
0 commit comments