diff options
| author | JamesC <[email protected]> | 2019-10-26 16:03:21 +0200 |
|---|---|---|
| committer | James Chiang <[email protected]> | 2019-11-03 20:34:27 +0100 |
| commit | 614c645643e86c4255b98c663c10f2c227158d4b (patch) | |
| tree | 742b7c6c0dcaf534682497ef0394ceada9d731e5 | |
| parent | Add closing and flushing of logging handlers (diff) | |
| download | discoin-614c645643e86c4255b98c663c10f2c227158d4b.tar.xz discoin-614c645643e86c4255b98c663c10f2c227158d4b.zip | |
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.
| -rwxr-xr-x | test/functional/test_framework/test_framework.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index 03cd127a7..6c18ef47a 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -280,6 +280,8 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass): rpc_logger.removeHandler(h) if cleanup_tree_on_exit: shutil.rmtree(self.options.tmpdir) + + self.nodes.clear() return exit_code # Methods to override in subclass test scripts. |