Commit 3750239c authored by Tomas Krizek's avatar Tomas Krizek

pytests/utils: give kresd more time to TCP FIN

parent 860c22f6
......@@ -100,7 +100,7 @@ def ping_alive(sock, msgid=None):
def expect_kresd_close(rst_ok=False):
with pytest.raises(BrokenPipeError, message="kresd didn't close the connection"):
try:
time.sleep(0.05) # give kresd time to close connection with TCP FIN
time.sleep(0.2) # give kresd time to close connection with TCP FIN
yield
except ConnectionResetError:
if rst_ok:
......
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