mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-04 09:41:52 +01:00
[tests] Use network_thread_start() in tests.
This commit is contained in:
@@ -57,7 +57,7 @@ class MaxUploadTest(BitcoinTestFramework):
|
||||
for _ in range(3):
|
||||
p2p_conns.append(self.nodes[0].add_p2p_connection(TestNode()))
|
||||
|
||||
NetworkThread().start() # Start up network handling in another thread
|
||||
network_thread_start()
|
||||
for p2pc in p2p_conns:
|
||||
p2pc.wait_for_verack()
|
||||
|
||||
@@ -149,7 +149,7 @@ class MaxUploadTest(BitcoinTestFramework):
|
||||
# Reconnect to self.nodes[0]
|
||||
self.nodes[0].add_p2p_connection(TestNode())
|
||||
|
||||
NetworkThread().start() # Start up network handling in another thread
|
||||
network_thread_start()
|
||||
self.nodes[0].p2p.wait_for_verack()
|
||||
|
||||
#retrieve 20 blocks which should be enough to break the 1MB limit
|
||||
|
||||
Reference in New Issue
Block a user