Skip to content

Commit

Permalink
fix: mac os uses symlink for canonical path (#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceMacD committed Apr 29, 2022
1 parent e3fd583 commit 1c128c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/cmd/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ func TestMain(m *testing.M) {
func TestCanonicalPath(t *testing.T) {
t.Setenv("HOME", "/home/user")
t.Setenv("USERPROFILE", "/home/user")
wd := t.TempDir()
wd, err := filepath.EvalSymlinks(t.TempDir())
assert.NilError(t, err)

env.ChangeWorkingDir(t, wd)

type testCase struct {
Expand Down

0 comments on commit 1c128c3

Please sign in to comment.