mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
qa: Only allow disconnecting all NodeConns
This commit is contained in:
@@ -126,8 +126,7 @@ class P2PLeakTest(BitcoinTestFramework):
|
||||
assert not unsupported_service_bit5_node.connected
|
||||
assert not unsupported_service_bit7_node.connected
|
||||
|
||||
for _ in range(5):
|
||||
self.nodes[0].disconnect_p2p()
|
||||
self.nodes[0].disconnect_p2ps()
|
||||
|
||||
# Wait until all connections are closed
|
||||
wait_until(lambda: len(self.nodes[0].getpeerinfo()) == 0)
|
||||
|
||||
Reference in New Issue
Block a user