mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-19 13:22:02 +02:00
[test] Prevent intermittent issue
Since m_next_addr_send is on a Poisson distribution, increase the mocktime bump to ensure we don't experience flakiness in the tests. Closes #22243.
This commit is contained in:
parent
1d8193e2a2
commit
6168eb06b2
@ -78,7 +78,7 @@ class AddrTest(BitcoinTestFramework):
|
|||||||
def send_addr_msg(self, source, msg, receivers):
|
def send_addr_msg(self, source, msg, receivers):
|
||||||
source.send_and_ping(msg)
|
source.send_and_ping(msg)
|
||||||
# pop m_next_addr_send timer
|
# pop m_next_addr_send timer
|
||||||
self.mocktime += 5 * 60
|
self.mocktime += 10 * 60
|
||||||
self.nodes[0].setmocktime(self.mocktime)
|
self.nodes[0].setmocktime(self.mocktime)
|
||||||
for peer in receivers:
|
for peer in receivers:
|
||||||
peer.sync_send_with_ping()
|
peer.sync_send_with_ping()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user