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

pytests/utils: give kresd more time to TCP FIN

parent 860c22f6
No related branches found
No related tags found
1 merge request!744ci: stabilize pytests
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment