From 66f6a32c21d550fe6e15649c2fc70b61c135362b Mon Sep 17 00:00:00 2001 From: Markus Keil Date: Tue, 10 Sep 2024 15:29:56 +0200 Subject: [PATCH] change test to use the env HOME instead of what user returns --- internal/flags/flags_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/flags/flags_test.go b/internal/flags/flags_test.go index 681586b46c74..79e2a36aec4a 100644 --- a/internal/flags/flags_test.go +++ b/internal/flags/flags_test.go @@ -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`,