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.
This commit is contained in:
Martin Zumsande
2022-04-29 21:35:05 +02:00
parent 26296eba3d
commit a3cd7dbfd8
3 changed files with 4 additions and 0 deletions

View File

@@ -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: