Skip to content

Commit a55c88b

Browse files
committed
pytest: fix flake in test_connect_ratelimit
Delay can cause bogus complaints: ``` 2025-11-13T23:50:03.6643632Z lightningd-3 2025-11-13T23:37:29.947Z **BROKEN** 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-connectd: wake delay for WIRE_CHANNEL_REESTABLISH: 5708msec ``` Signed-off-by: Rusty Russell <[email protected]>
1 parent a7bcbfe commit a55c88b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4719,8 +4719,11 @@ def test_injectonionmessage(node_factory):
47194719

47204720
def test_connect_ratelimit(node_factory, bitcoind):
47214721
"""l1 has 5 peers, restarts, make sure we limit"""
4722+
# Sending nodes SIGSTOP at the wrong time makes connectd complain about
4723+
# how long operations took!
47224724
nodes = node_factory.get_nodes(6,
4723-
opts=[{'dev-limit-connections-inflight': None, 'may_reconnect': True}] + [{'may_reconnect': True}] * 5)
4725+
opts=[{'dev-limit-connections-inflight': None, 'may_reconnect': True}]
4726+
+ [{'may_reconnect': True, 'broken_log': "connectd: wake delay for"}}] * 5)
47244727

47254728
l1 = nodes[0]
47264729
nodes = nodes[1:]

0 commit comments

Comments
 (0)