diff --git a/pkg/k8s/dialer_test.go b/pkg/k8s/dialer_test.go index fa7ae92032..7a8a778e2a 100644 --- a/pkg/k8s/dialer_test.go +++ b/pkg/k8s/dialer_test.go @@ -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()) }