Commit adde7db0 authored by Tomas Krizek's avatar Tomas Krizek

pytests/kresd: more resilient initial socket creation

parent 6a58801d
......@@ -154,7 +154,10 @@ class Kresd(ContextDecorator):
except ConnectionRefusedError:
continue
else:
return utils.try_ping_alive(sock, close=True, msgid=10000)
try:
return utils.try_ping_alive(sock, close=True, msgid=10000)
except socket.timeout:
continue
finally:
sock.close()
raise RuntimeError("Kresd didn't start in time")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment