Skip to content

Commit ed057da

Browse files
authored
Sleep 1 sec in mininode's wait_for_disconnect (dashpay#3538)
* Sleep 1 sec in mininode's wait_for_disconnect * Add a comment about a future backport that might potentially fix related issues
1 parent 737ed47 commit ed057da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/test_framework/mininode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ def on_version(self, message):
373373
def wait_for_disconnect(self, timeout=60):
374374
test_function = lambda: self.state != "connected"
375375
wait_until(test_function, timeout=timeout, lock=mininode_lock)
376+
# This is a hack. The related issues should be fixed by bitcoin 14119 and 14457.
377+
time.sleep(1)
376378

377379
# Message receiving helper methods
378380

0 commit comments

Comments
 (0)