Skip to content

Commit de16b2e

Browse files
committed
Fixup
1 parent ebe1654 commit de16b2e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

internal/vfs/symlink_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212
)
1313

1414
func TestSymlinkRealpath(t *testing.T) {
15+
t.Parallel()
16+
1517
tmp := t.TempDir()
1618

1719
target := filepath.Join(tmp, "target")
@@ -36,13 +38,10 @@ func TestSymlinkRealpath(t *testing.T) {
3638
assert.NilError(t, err)
3739
assert.Equal(t, string(gotContents), expectedContents)
3840

39-
targetFileNormalized := tspath.NormalizePath(targetFile)
40-
linkFileNormalized := tspath.NormalizePath(linkFile)
41-
4241
fs := FromOS()
4342

4443
// Realpath both; some systems like macOS make TempDir itself a symlink.
45-
targetRealpath := fs.Realpath(targetFileNormalized)
46-
linkRealpath := fs.Realpath(linkFileNormalized)
44+
targetRealpath := fs.Realpath(tspath.NormalizePath(targetFile))
45+
linkRealpath := fs.Realpath(tspath.NormalizePath(linkFile))
4746
assert.Equal(t, targetRealpath, linkRealpath)
4847
}

0 commit comments

Comments
 (0)