From a3cd7dbfd8200c580aae9ea0f5473d58107dd582 Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Fri, 29 Apr 2022 21:35:05 +0200 Subject: test: stop node before calling assert_start_raises_init_error ...in feature_coinstatsindex and feature_pruning. Also add an assert to assert_start_raises_init_error that the node is not already running. --- test/functional/test_framework/test_node.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test/functional/test_framework/test_node.py') diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index e56d4aa492..7d2db391b6 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -545,6 +545,7 @@ class TestNode(): Will throw if bitcoind starts without an error. Will throw if an expected_msg is provided and it does not match bitcoind's stdout.""" + assert not self.running with tempfile.NamedTemporaryFile(dir=self.stderr_dir, delete=False) as log_stderr, \ tempfile.NamedTemporaryFile(dir=self.stdout_dir, delete=False) as log_stdout: try: -- cgit v1.2.3