Skip to content

Commit c337f85

Browse files
committed
test(runtime): make symlink path assertion cross-platform
1 parent cccc306 commit c337f85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/runtime/user_hooks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ func TestHookPathContainsSymlinkAndResolvePathErrorBranches(t *testing.T) {
831831
}
832832
notDirChild := filepath.Join(base, "child")
833833
contains, err := hookPathContainsSymlink(base, notDirChild)
834-
if err != nil {
834+
if err != nil && !strings.Contains(strings.ToLower(err.Error()), "not a directory") {
835835
t.Fatalf("hookPathContainsSymlink() unexpected error = %v", err)
836836
}
837837
if contains {

0 commit comments

Comments
 (0)