aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/test_framework.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-12-17 13:39:03 +0100
committerMarcoFalke <falke.marco@gmail.com>2020-12-17 15:06:31 +0100
commitfab46b34f4b13abbb0af276c3fb548f25ccc28bd (patch)
treec1b89d98be6c1b0e99271756811695255947b45f /test/functional/test_framework/test_framework.py
parentf0913f2f950c7a3e0a14d32216bd6ce4e19d85df (diff)
downloadbitcoin-fab46b34f4b13abbb0af276c3fb548f25ccc28bd.tar.xz
test: Fix restart node race
Diffstat (limited to 'test/functional/test_framework/test_framework.py')
-rwxr-xr-xtest/functional/test_framework/test_framework.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index bf047c5f68..85d448b2e8 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -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