Skip to content

Commit fd8f45f

Browse files
committed
[test] Add restart_node to BitcoinTestFramework
1 parent 4f7e37e commit fd8f45f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,11 @@ def stop_nodes(self):
273273
# Wait for nodes to stop
274274
node.wait_until_stopped()
275275

276+
def restart_node(self, i, extra_args=None):
277+
"""Stop and start a test node"""
278+
self.stop_node(i)
279+
self.start_node(i, extra_args)
280+
276281
def assert_start_raises_init_error(self, i, extra_args=None, expected_msg=None):
277282
with tempfile.SpooledTemporaryFile(max_size=2**16) as log_stderr:
278283
try:

0 commit comments

Comments
 (0)