From 614c645643e86c4255b98c663c10f2c227158d4b Mon Sep 17 00:00:00 2001 From: JamesC Date: Sat, 26 Oct 2019 16:03:21 +0200 Subject: 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. --- test/functional/test_framework/test_framework.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/functional') 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. -- cgit v1.2.3