Skip to content

Commit

Permalink
change test to use the env HOME instead of what user returns
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Sep 10, 2024
1 parent ab2e6c2 commit 66f6a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/flags/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestPathExpansion(t *testing.T) {
} else {
tests = map[string]string{
`/home/someuser/tmp`: `/home/someuser/tmp`,
`~/tmp`: user.HomeDir + `/tmp`,
`~/tmp`: os.Getenv("HOME") + `/tmp`,
`~thisOtherUser/b/`: `~thisOtherUser/b`,
`$DDDXXX/a/b`: `/tmp/a/b`,
`/a/b/`: `/a/b`,
Expand Down

0 comments on commit 66f6a32

Please sign in to comment.