Skip to content

Commit

Permalink
add case for DNS resolve fail (knative#2619) (#1018)
Browse files Browse the repository at this point in the history
Signed-off-by: David Fridrich <[email protected]>
Co-authored-by: David Fridrich <[email protected]>
  • Loading branch information
openshift-cherrypick-robot and gauron99 authored Jan 7, 2025
1 parent 1b660a9 commit f6150ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/k8s/dialer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func TestDialUnreachable(t *testing.T) {
t.Error("error was expected but got nil")
return
}
if !strings.Contains(err.Error(), "no such host") {
if !strings.Contains(err.Error(), "no such host") && !strings.Contains(err.Error(), "does not resolve") {
t.Errorf("error %q doesn't contain expected substring: ", err.Error())
}

Expand Down

0 comments on commit f6150ed

Please sign in to comment.