mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-09-30 00:01:02 -04:00
added regression test for the reported failure
This commit is contained in:
parent
6055a11848
commit
07c22470a9
@ -69,6 +69,15 @@ class SessionTest < Minitest::Test
|
||||
end
|
||||
end
|
||||
|
||||
# regression test
|
||||
def test_multiple_resolver_errors
|
||||
2.times do
|
||||
response = HTTPX.get("http://www.sfjewjfwigiewpgwwg.com")
|
||||
assert response.is_a?(HTTPX::ErrorResponse)
|
||||
assert response.error.is_a?(HTTPX::ResolveError)
|
||||
end
|
||||
end
|
||||
|
||||
# def test_http_timeouts_operation_timeout
|
||||
# uri = build_uri("/delay/2")
|
||||
# session = HTTPX.timeout(operation_timeout: 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user