Skip to content

Commit 9a40cfc

Browse files
committed
[refactor] use waiting inside disconnect_p2ps
-Use wait_for_disconnect instead of manual wait after calling disconnect_p2ps.
1 parent aeb9fb4 commit 9a40cfc

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

test/functional/p2p_leak.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ def run_test(self):
132132

133133
self.nodes[0].disconnect_p2ps()
134134

135-
# Wait until all connections are closed
136-
wait_until(lambda: len(self.nodes[0].getpeerinfo()) == 0)
137-
138135
# Make sure no unexpected messages came in
139136
assert no_version_bannode.unexpected_msg == False
140137
assert no_version_idlenode.unexpected_msg == False

test/functional/p2p_node_network_limited.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def run_test(self):
8383
assert_equal(node1.firstAddrnServices, expected_services)
8484

8585
self.nodes[0].disconnect_p2ps()
86-
node1.wait_for_disconnect()
8786

8887
# connect unsynced node 2 with pruned NODE_NETWORK_LIMITED peer
8988
# because node 2 is in IBD and node 0 is a NODE_NETWORK_LIMITED peer, sync must not be possible

0 commit comments

Comments
 (0)