From: Tomas Krizek Date: Fri, 4 Jan 2019 14:43:57 +0000 (+0100) Subject: pytests/utils: give kresd more time to TCP FIN X-Git-Tag: v3.2.1~6^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3750239c5f137f0825857a93d3ffd44ce79cfe43;p=thirdparty%2Fknot-resolver.git pytests/utils: give kresd more time to TCP FIN --- diff --git a/tests/pytests/utils.py b/tests/pytests/utils.py index bfbd08584..dcdc14c21 100644 --- a/tests/pytests/utils.py +++ b/tests/pytests/utils.py @@ -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: