[test] Add restart_node to BitcoinTestFramework
This commit is contained in:
parent
4f7e37e26c
commit
fd8f45fe88
1 changed files with 5 additions and 0 deletions
|
@ -273,6 +273,11 @@ class BitcoinTestFramework(object):
|
||||||
# Wait for nodes to stop
|
# Wait for nodes to stop
|
||||||
node.wait_until_stopped()
|
node.wait_until_stopped()
|
||||||
|
|
||||||
|
def restart_node(self, i, extra_args=None):
|
||||||
|
"""Stop and start a test node"""
|
||||||
|
self.stop_node(i)
|
||||||
|
self.start_node(i, extra_args)
|
||||||
|
|
||||||
def assert_start_raises_init_error(self, i, extra_args=None, expected_msg=None):
|
def assert_start_raises_init_error(self, i, extra_args=None, expected_msg=None):
|
||||||
with tempfile.SpooledTemporaryFile(max_size=2**16) as log_stderr:
|
with tempfile.SpooledTemporaryFile(max_size=2**16) as log_stderr:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue