Skip to content
Snippets Groups Projects
Verified Commit 91b923b0 authored by Tomas Krizek's avatar Tomas Krizek
Browse files

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

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