mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-01 08:24:21 +01:00
Clear TestNode objects after shutdown
TestNode objects need to be removed during shutdown, as setup_nodes does not remove previous TestNode objects from previous test runs during setup.
This commit is contained in:
@@ -280,6 +280,8 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
|||||||
rpc_logger.removeHandler(h)
|
rpc_logger.removeHandler(h)
|
||||||
if cleanup_tree_on_exit:
|
if cleanup_tree_on_exit:
|
||||||
shutil.rmtree(self.options.tmpdir)
|
shutil.rmtree(self.options.tmpdir)
|
||||||
|
|
||||||
|
self.nodes.clear()
|
||||||
return exit_code
|
return exit_code
|
||||||
|
|
||||||
# Methods to override in subclass test scripts.
|
# Methods to override in subclass test scripts.
|
||||||
|
|||||||
Reference in New Issue
Block a user