From 9a40cfc558b3f7fa4fff1270f969582af17479a5 Mon Sep 17 00:00:00 2001 From: gzhao408 Date: Fri, 12 Jun 2020 15:03:33 -0700 Subject: [refactor] use waiting inside disconnect_p2ps -Use wait_for_disconnect instead of manual wait after calling disconnect_p2ps. --- test/functional/p2p_leak.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'test/functional/p2p_leak.py') diff --git a/test/functional/p2p_leak.py b/test/functional/p2p_leak.py index 157af68203..3b3dbd08f2 100755 --- a/test/functional/p2p_leak.py +++ b/test/functional/p2p_leak.py @@ -132,9 +132,6 @@ class P2PLeakTest(BitcoinTestFramework): self.nodes[0].disconnect_p2ps() - # Wait until all connections are closed - wait_until(lambda: len(self.nodes[0].getpeerinfo()) == 0) - # Make sure no unexpected messages came in assert no_version_bannode.unexpected_msg == False assert no_version_idlenode.unexpected_msg == False -- cgit v1.2.3