aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorJamesC <james.chiangwu@gmail.com>2019-10-26 16:03:21 +0200
committerJames Chiang <james.chiangwu@gmail.com>2019-11-03 20:34:27 +0100
commit614c645643e86c4255b98c663c10f2c227158d4b (patch)
tree742b7c6c0dcaf534682497ef0394ceada9d731e5 /test/functional/test_framework
parent6f40820757d25ff1ccfdfcbdf2b45b8b65308010 (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-xtest/functional/test_framework/test_framework.py2
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.