We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 283802d commit b3c0734Copy full SHA for b3c0734
unit_tests/sources/streams/http/test_http.py
@@ -331,6 +331,16 @@ def test_raise_on_http_errors(mocker, error):
331
assert send_mock.call_count == stream.max_retries + 1
332
333
334
+def test_dns_resolution_error_retry():
335
+ """Test that DNS resolution errors are retried"""
336
+ stream = StubBasicReadHttpStream()
337
+ error_handler = stream.get_error_handler()
338
+ resolution = error_handler.interpret_response(requests.exceptions.InvalidURL())
339
+
340
+ assert resolution.response_action == ResponseAction.RETRY
341
+ assert resolution.failure_type == FailureType.transient_error
342
343
344
class PostHttpStream(StubBasicReadHttpStream):
345
http_method = "POST"
346
0 commit comments