test: Replace use of (dis)?connect_nodes globals

A later scripted-diff commit replaces the majority of uses, which all
follow this pattern:

    (dis)?connect_nodes(self.nodes[a], b)

This commit replaces the few "special cases".
This commit is contained in:
Elliott Jin
2020-09-17 00:32:01 -07:00
parent f5bd46a4cc
commit be386840d4
2 changed files with 4 additions and 7 deletions

View File

@ -13,7 +13,6 @@ from test_framework.util import (
assert_greater_than,
assert_raises_rpc_error,
connect_nodes,
disconnect_nodes,
find_output,
)
@ -46,7 +45,7 @@ class PSBTTest(BitcoinTestFramework):
# Disconnect offline node from others
# Topology of test network is linear, so this one call is enough
disconnect_nodes(offline_node, 1)
self.disconnect_nodes(0, 1)
# Create watchonly on online_node
online_node.createwallet(wallet_name='wonline', disable_private_keys=True)