This is a bit of a magic number. Perhaps it's worth a comment?
diff --git a/test/functional/p2p_addr_relay.py b/test/functional/p2p_addr_relay.py
index 5f75670739..1502038b2d 100755
--- a/test/functional/p2p_addr_relay.py
+++ b/test/functional/p2p_addr_relay.py
@@ -272,6 +272,10 @@ class AddrTest(BitcoinTestFramework):
block_relay_peer.send_and_ping(msg_getaddr())
inbound_peer.send_and_ping(msg_getaddr())
+ # `addr` messages are sent on an exponential distribution with mean interval
+ # of 30s. Setting the mocktime 600s forward and waiting for 60s for the
+ # addr message gives a probability of (1 - e^-(660/30)) that the event will
+ # occur (i.e. this fails less than one in 3 billion repeats).
self.mocktime += 10 * 60
self.nodes[0].setmocktime(self.mocktime)
inbound_peer.wait_until(lambda: inbound_peer.addr_received() is True)
Incidentally, I don't like the name PoissonNextSend since people often refer to it incorrectly as a "Poisson distribution", whereas it is in fact an exponential distribution, which gives the probability distribution of the time between events in a Poisson point process (https://en.wikipedia.org/wiki/Exponential_distribution).