From ed057dadd014cad11c7d8b210778e9625b9119f3 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Thu, 18 Jun 2020 11:41:27 +0300 Subject: [PATCH] Sleep 1 sec in mininode's wait_for_disconnect (#3538) * Sleep 1 sec in mininode's wait_for_disconnect * Add a comment about a future backport that might potentially fix related issues --- test/functional/test_framework/mininode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/test_framework/mininode.py b/test/functional/test_framework/mininode.py index 9cf691f4c7..e48d620bd9 100755 --- a/test/functional/test_framework/mininode.py +++ b/test/functional/test_framework/mininode.py @@ -373,6 +373,8 @@ class P2PInterface(P2PConnection): def wait_for_disconnect(self, timeout=60): test_function = lambda: self.state != "connected" wait_until(test_function, timeout=timeout, lock=mininode_lock) + # This is a hack. The related issues should be fixed by bitcoin 14119 and 14457. + time.sleep(1) # Message receiving helper methods