From a958b8cec1f9f15af9a1ddab4603ddd1aefa4973 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 29 Aug 2022 16:16:10 +0200 Subject: [PATCH 3/4] tests: add timeout to requests call (#68469) --- tests/test_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_requests.py b/tests/test_requests.py index 8eab0201..be90a58a 100644 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -452,7 +452,7 @@ def test_log_http_request(caplog): return response(200, 'coin', headers={'Error Webservice': b'\xe9'}, request=request) with HTTMock(bad_headers): - resp = requests.get('https://example.com/') + resp = requests.get('https://example.com/', timeout=10) caplog.set_level(logging.DEBUG) assert len(caplog.records) == 0 log_http_request(logging.getLogger(), resp.request, resp) -- 2.37.2