diff options
author | Martin Zumsande <mzumsande@gmail.com> | 2022-04-29 21:35:05 +0200 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2022-04-29 22:50:26 +0200 |
commit | a3cd7dbfd8200c580aae9ea0f5473d58107dd582 (patch) | |
tree | 2b39324aaecd706759d7a348fc32fea47cdf187e /test/functional/test_framework | |
parent | 26296eba3dc34043b025bda167386c47693705b5 (diff) | |
download | bitcoin-a3cd7dbfd8200c580aae9ea0f5473d58107dd582.tar.xz |
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.
Diffstat (limited to 'test/functional/test_framework')
-rwxr-xr-x | test/functional/test_framework/test_node.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |