mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
test: Fix intermittent timeout in p2p_tx_download.py
This commit is contained in:
parent
ba7c67f609
commit
fa6c300a99
@ -284,13 +284,18 @@ class TxDownloadTest(BitcoinTestFramework):
|
||||
|
||||
# Run each test against new bitcoind instances, as setting mocktimes has long-term effects on when
|
||||
# the next trickle relay event happens.
|
||||
for test in [self.test_in_flight_max, self.test_inv_block, self.test_tx_requests,
|
||||
self.test_rejects_filter_reset]:
|
||||
for test, with_inbounds in [
|
||||
(self.test_in_flight_max, True),
|
||||
(self.test_inv_block, True),
|
||||
(self.test_tx_requests, True),
|
||||
(self.test_rejects_filter_reset, False),
|
||||
]:
|
||||
self.stop_nodes()
|
||||
self.start_nodes()
|
||||
self.connect_nodes(1, 0)
|
||||
# Setup the p2p connections
|
||||
self.peers = []
|
||||
if with_inbounds:
|
||||
for node in self.nodes:
|
||||
for _ in range(NUM_INBOUND):
|
||||
self.peers.append(node.add_p2p_connection(TestP2PConn()))
|
||||
|
Loading…
Reference in New Issue
Block a user