diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index a74ab5aed92..c93cc7283f1 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -258,6 +258,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass): self.log.debug('Setting up network thread') self.network_thread = NetworkThread() self.network_thread.start() + self.wait_until(lambda: self.network_thread.network_event_loop.is_running()) if self.options.usecli: if not self.supports_cli: