Repository navigation
test: add missing stop_node calls to feature_coinstatsindex and feature_prune - #25034
Conversation
5345f75 to
c6c766a
Compare
...in feature_coinstatsindex and feature_pruning. Also add an assert to assert_start_raises_init_error that the node is not already running.
c6c766a to
a3cd7db
Compare
|
An alternative fix would be to have |
|
I noticed there are other tests which don't stop the node before |
Which ones? Since I added the assert to Oh, and thanks @willcl-ark I for finding this bug! |
|
| 'Please temporarily disable coinstatsindex while using -reindex-chainstate, or replace -reindex-chainstate with -reindex to fully rebuild all indexes.', | ||
| extra_args=['-coinstatsindex', '-reindex-chainstate'], | ||
| ) | ||
| self.restart_node(1, extra_args=["-coinstatsindex"]) |
There was a problem hiding this comment.
I think the default extra args are persisted in node, so no need to pass them here again.
In #24789, I forgot to stop the node before using
assert_start_raises_init_errorinfeature_coinstatsindex. This resulted in a bitcoind process that is not being terminated after the test finishes.feature_prunehas the same problem and also creates a zombie bitcoind process.Also adds an assert to
assert_start_raises_init_errorto make sure the node isn't already running to prevent this sort of mistake in the future.