diff options
author | JamesC <james.chiangwu@gmail.com> | 2019-10-26 16:03:21 +0200 |
---|---|---|
committer | James Chiang <james.chiangwu@gmail.com> | 2019-11-03 20:34:27 +0100 |
commit | 614c645643e86c4255b98c663c10f2c227158d4b (patch) | |
tree | 742b7c6c0dcaf534682497ef0394ceada9d731e5 /test/functional/test_framework | |
parent | 6f40820757d25ff1ccfdfcbdf2b45b8b65308010 (diff) |
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.
Diffstat (limited to 'test/functional/test_framework')
-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 03cd127a7d..6c18ef47ab 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. |