author | Alberto Bertogli
<albertito@blitiri.com.ar> 2022-07-03 11:40:26 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2022-07-03 11:40:26 UTC |
parent | 61ea47a6094d4b06d49e925507fd7e356925929c |
internal/httpresolver/resolver_test.go | +4 | -1 |
diff --git a/internal/httpresolver/resolver_test.go b/internal/httpresolver/resolver_test.go index c847b28..276fa61 100644 --- a/internal/httpresolver/resolver_test.go +++ b/internal/httpresolver/resolver_test.go @@ -89,7 +89,10 @@ func TestBasic(t *testing.T) { } func TestInvalidServer(t *testing.T) { - r := mustNewDoH(t, "http://0.0.0.0/") + ts := httptest.NewServer(nil) + ts.Close() + + r := mustNewDoH(t, ts.URL) queryExpectErr(t, r, "test.blah.", "POST failed:") }