Commit 91b923b0 authored by Tomas Krizek's avatar Tomas Krizek

pytests/kresd: change order of tcp/tls alive pings

parent 7fdba57f
......@@ -129,11 +129,11 @@ class Kresd(ContextDecorator):
def all_ports_alive(self, msgid=10001):
alive = True
if self.ip:
alive &= utils.try_ping_alive(self.ip_tls_socket(), close=True, msgid=msgid)
alive &= utils.try_ping_alive(self.ip_tcp_socket(), close=True, msgid=msgid + 1)
alive &= utils.try_ping_alive(self.ip_tcp_socket(), close=True, msgid=msgid)
alive &= utils.try_ping_alive(self.ip_tls_socket(), close=True, msgid=msgid + 1)
if self.ip6:
alive &= utils.try_ping_alive(self.ip6_tls_socket(), close=True, msgid=msgid + 2)
alive &= utils.try_ping_alive(self.ip6_tcp_socket(), close=True, msgid=msgid + 3)
alive &= utils.try_ping_alive(self.ip6_tcp_socket(), close=True, msgid=msgid + 2)
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):
......
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