From fe09637711c15626aff4ef88c7a4f02e57c2879d Mon Sep 17 00:00:00 2001 From: monacoremo Date: Thu, 17 Dec 2020 19:45:08 +0100 Subject: [PATCH] catch ReadTimeout in IO tests --- test/io-tests/test_io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/io-tests/test_io.py b/test/io-tests/test_io.py index 2628c479b..4075513bf 100644 --- a/test/io-tests/test_io.py +++ b/test/io-tests/test_io.py @@ -105,11 +105,11 @@ def wait_until_ready(url): for _ in range(10): try: - response = session.get(url, timeout=0.1) + response = session.get(url, timeout=1) if response.status_code == 200: return - except requests.ConnectionError: + except (requests.ConnectionError, requests.ReadTimeout): pass time.sleep(0.1)