[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:
Amiti Uttarwar 2021-06-21 10:13:37 -07:00
parent 1d8193e2a2
commit 6168eb06b2

View file

@ -78,7 +78,7 @@ class AddrTest(BitcoinTestFramework):
def send_addr_msg(self, source, msg, receivers):
source.send_and_ping(msg)
# pop m_next_addr_send timer
self.mocktime += 5 * 60
self.mocktime += 10 * 60
self.nodes[0].setmocktime(self.mocktime)
for peer in receivers:
peer.sync_send_with_ping()