mirror of https://github.com/knative/func.git
add case for DNS resolve fail (#2619)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
This commit is contained in:
parent
8dc529f80b
commit
5d9dafbffe
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue