add case for DNS resolve fail (#2619)

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
This commit is contained in:
David Fridrich 2024-12-17 13:23:09 +01:00 committed by GitHub
parent 8dc529f80b
commit 5d9dafbffe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}