Skip to content

Commit 0f8b92e

Browse files
Brandon Honeycuttclaude
andcommitted
fix: add ProgramData path validation for Windows config directory test
The GetConfigDir test was failing on Windows when APPDATA environment variable is not set, as the fallback path uses C:\ProgramData\hosts-manager. Updated test validation to accept ProgramData as a valid path component alongside AppData, .config, and /etc/. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 32893dc commit 0f8b92e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/platform/platform_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func TestGetConfigDir(t *testing.T) {
6464
return strings.Contains(path, "hosts-manager") &&
6565
(strings.Contains(path, ".config") ||
6666
strings.Contains(path, "AppData") ||
67+
strings.Contains(path, "ProgramData") ||
6768
strings.Contains(path, "/etc/"))
6869
},
6970
},

0 commit comments

Comments
 (0)