Skip to content

Commit eb0ada3

Browse files
gauron99openshift-cherrypick-robot
authored andcommitted
add case for DNS resolve fail (knative#2619)
Signed-off-by: David Fridrich <[email protected]>
1 parent 2d75ff0 commit eb0ada3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/k8s/dialer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func TestDialUnreachable(t *testing.T) {
195195
t.Error("error was expected but got nil")
196196
return
197197
}
198-
if !strings.Contains(err.Error(), "no such host") {
198+
if !strings.Contains(err.Error(), "no such host") && !strings.Contains(err.Error(), "does not resolve") {
199199
t.Errorf("error %q doesn't contain expected substring: ", err.Error())
200200
}
201201

0 commit comments

Comments
 (0)