mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 19:43:13 +02:00
test: Fix restart node race
This commit is contained in:
@@ -517,13 +517,12 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||
def stop_node(self, i, expected_stderr='', wait=0):
|
||||
"""Stop a bitcoind test node"""
|
||||
self.nodes[i].stop_node(expected_stderr, wait=wait)
|
||||
self.nodes[i].wait_until_stopped()
|
||||
|
||||
def stop_nodes(self, wait=0):
|
||||
"""Stop multiple bitcoind test nodes"""
|
||||
for node in self.nodes:
|
||||
# Issue RPC to stop nodes
|
||||
node.stop_node(wait=wait)
|
||||
node.stop_node(wait=wait, wait_until_stopped=False)
|
||||
|
||||
for node in self.nodes:
|
||||
# Wait for nodes to stop
|
||||
|
Reference in New Issue
Block a user