test: fix intermittent failure in wallet_reorgsrestore.py

Wait until the node's process has fully stopped before starting a new instance.

Since the same code is used in tool_wallet.py, this consolidates the behavior
into a 'kill_process()' function.
This commit is contained in:
furszy committed 2025-03-14 11:06:44 -04:00
1 parent 698f86964c
commit 36b0713edc
3 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -115,7 +115,7 @@ class ReorgsRestoreTest(BitcoinTestFramework):
assert_equal(wallet.gettransaction(coinbase_tx_id)['details'][0]['abandoned'], True)
# Abort process abruptly to mimic an unclean shutdown (no chain state flush to disk)
node.process.kill()
node.kill_process()
# Restart the node and confirm that it has not persisted the last chain state changes to disk
self.start_node(0)