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:
@@ -308,7 +308,7 @@ class TestNode():
|
||||
def version_is_at_least(self, ver):
|
||||
return self.version is None or self.version >= ver
|
||||
|
||||
def stop_node(self, expected_stderr='', wait=0):
|
||||
def stop_node(self, expected_stderr='', *, wait=0, wait_until_stopped=True):
|
||||
"""Stop the node."""
|
||||
if not self.running:
|
||||
return
|
||||
@@ -337,6 +337,9 @@ class TestNode():
|
||||
|
||||
del self.p2ps[:]
|
||||
|
||||
if wait_until_stopped:
|
||||
self.wait_until_stopped()
|
||||
|
||||
def is_node_stopped(self):
|
||||
"""Checks whether the node has stopped.
|
||||
|
||||
|
Reference in New Issue
Block a user