Skip to content

Commit ebe3865

Browse files
fix test
1 parent b222674 commit ebe3865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/analyze_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,9 @@ func TestCheckIfConfigExistsAndIsNeeded(t *testing.T) {
367367
err = checkIfConfigExistsAndIsNeeded(tt.toolName, tt.cliLocalMode)
368368

369369
// Clean up any files that might have been created by the function under test
370-
if !tt.configFileExists && toolConfigFileName[tt.toolName] != "" {
370+
if !tt.configFileExists && constants.ToolConfigFileNames[tt.toolName] != "" {
371371
toolsConfigDir := config.Config.ToolsConfigDirectory()
372-
configPath := filepath.Join(toolsConfigDir, toolConfigFileName[tt.toolName])
372+
configPath := filepath.Join(toolsConfigDir, constants.ToolConfigFileNames[tt.toolName])
373373
if _, statErr := os.Stat(configPath); statErr == nil {
374374
os.Remove(configPath)
375375
}

0 commit comments

Comments
 (0)