Skip to content

Commit

Permalink
catch ReadTimeout in IO tests
Browse files Browse the repository at this point in the history
  • Loading branch information
monacoremo authored and steve-chavez committed Dec 17, 2020
1 parent dbe3c16 commit fe09637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/io-tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fe09637

Please sign in to comment.