We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cccc306 commit c337f85Copy full SHA for c337f85
1 file changed
internal/runtime/user_hooks_test.go
@@ -831,7 +831,7 @@ func TestHookPathContainsSymlinkAndResolvePathErrorBranches(t *testing.T) {
831
}
832
notDirChild := filepath.Join(base, "child")
833
contains, err := hookPathContainsSymlink(base, notDirChild)
834
- if err != nil {
+ if err != nil && !strings.Contains(strings.ToLower(err.Error()), "not a directory") {
835
t.Fatalf("hookPathContainsSymlink() unexpected error = %v", err)
836
837
if contains {
0 commit comments