mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 13:49:35 +02:00
test: Scale NetworkThread close timeout with timeout_factor
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user