diff --git a/test/functional/test_framework/p2p.py b/test/functional/test_framework/p2p.py index 986eaf1e88e..f8e030add95 100755 --- a/test/functional/test_framework/p2p.py +++ b/test/functional/test_framework/p2p.py @@ -743,7 +743,7 @@ class NetworkThread(threading.Thread): """Start the network thread.""" self.network_event_loop.run_forever() - def close(self, *, timeout=10): + def close(self, *, timeout): """Close the connections and network event loop.""" self.network_event_loop.call_soon_threadsafe(self.network_event_loop.stop) wait_until_helper_internal(lambda: not self.network_event_loop.is_running(), timeout=timeout) diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index ecc9ffa2310..1f957564453 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -278,7 +278,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass): pdb.set_trace() self.log.debug('Closing down network thread') - self.network_thread.close() + self.network_thread.close(timeout=self.options.timeout_factor * 10) if self.success == TestStatus.FAILED: self.log.info("Not stopping nodes as test failed. The dangling processes will be cleaned up later.") else: