Skip to content

Commit

Permalink
add case for DNS resolve fail
Browse files Browse the repository at this point in the history
Signed-off-by: David Fridrich <[email protected]>
  • Loading branch information
gauron99 committed Dec 17, 2024
1 parent 8dc529f commit b9d1625
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 @@ -198,7 +198,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 b9d1625

Please sign in to comment.