diff --git a/stdlib/experimental/http/requests/requests_test.go b/stdlib/experimental/http/requests/requests_test.go index 0b347c5d39..cd4d4ffdf9 100644 --- a/stdlib/experimental/http/requests/requests_test.go +++ b/stdlib/experimental/http/requests/requests_test.go @@ -146,7 +146,7 @@ requests.do(method: "GET", url:"http://notarealaddressatall/path/a/b/c", headers if err == nil { t.Fatal("expected failure") } - if !strings.Contains(err.Error(), "no such host") { + if !strings.Contains(err.Error(), "no such host") && !strings.Contains(err.Error(), "Temporary failure in name resolution") { t.Errorf("unexpected cause of failure, got err: %v", err) } }