Handle host/network is unreachable in integration tests

This commit is contained in:
Alexey Milovidov 2020-09-07 19:43:35 +03:00
parent 1f1b570832
commit 829049de2f

View File

@ -1041,7 +1041,7 @@ class ClickHouseInstance:
except socket.timeout:
continue
except socket.error as e:
if e.errno == errno.ECONNREFUSED:
if e.errno == errno.ECONNREFUSED or e.errno == errno.EHOSTUNREACH or e.errno == errno.ENETUNREACH:
time.sleep(0.1)
else:
raise