]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
pytests/utils: give kresd more time to TCP FIN
authorTomas Krizek <tomas.krizek@nic.cz>
Fri, 4 Jan 2019 14:43:57 +0000 (15:43 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 8 Jan 2019 15:48:49 +0000 (16:48 +0100)
tests/pytests/utils.py

index bfbd08584458de7ef613d250e94ccb4d1c99b3af..dcdc14c21b2543013efd0cf61eaf3135745a2bb1 100644 (file)
@@ -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: