Verified Commit adde7db0 authored by Tomas Krizek's avatar Tomas Krizek
Browse files

pytests/kresd: more resilient initial socket creation

parent 6a58801d
...@@ -154,7 +154,10 @@ class Kresd(ContextDecorator): ...@@ -154,7 +154,10 @@ class Kresd(ContextDecorator):
except ConnectionRefusedError: except ConnectionRefusedError:
continue continue
else: 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: finally:
sock.close() sock.close()
raise RuntimeError("Kresd didn't start in time") 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