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:
3 files changed
+7
-5
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user