Commit f6f891b0 authored by Tomas Krizek's avatar Tomas Krizek

pytests/kresd: increase delay during initial waiting for port

parent 91b923b0
......@@ -136,11 +136,11 @@ class Kresd(ContextDecorator):
alive &= utils.try_ping_alive(self.ip6_tls_socket(), close=True, msgid=msgid + 3)
return alive
def _wait_for_tcp_port(self, delay=0.1, max_attempts=20):
def _wait_for_tcp_port(self, delay=0.1, max_attempts=50):
family = socket.AF_INET if self.ip else socket.AF_INET6
for _ in range(max_attempts):
try:
sock, dest = self.stream_socket(family, timeout=3)
sock, dest = self.stream_socket(family, timeout=5)
sock.connect(dest)
except ConnectionRefusedError:
time.sleep(delay)
......
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