From b0f8077e32f7d2a69de21577daf6b8dd567ab519 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 14 Jan 2026 13:18:11 +1030 Subject: [PATCH] pytest: fix flake in test_gossip_query_channel_range If l4 sends a WIRE_QUERY_SHORT_CHANNEL_IDS at the wrong time, we will get that and be upset the response is wrong: ``` 2026-01-13T14:45:55.9059786Z E AssertionError: assert ['010806226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f00000000000f42400100110000006800000100000000690000010000', '010506226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f001100000068000001000000006900000100000103000402'] in (['010806226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f00000000000f42400100110000006800000100000000690000010000'], ['010806226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f00000000000f42400100110000006900000100000000680000010000']) 2026-01-13T14:45:55.9063357Z 2026-01-13T14:45:55.9063527Z tests/test_gossip.py:762: AssertionError ``` Signed-off-by: Rusty Russell --- tests/test_gossip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_gossip.py b/tests/test_gossip.py index 45bbd177d..c8d700e17 100644 --- a/tests/test_gossip.py +++ b/tests/test_gossip.py @@ -748,7 +748,7 @@ def test_gossip_query_channel_range(node_factory, bitcoind, chainparams): msgs = l4.query_gossip('query_channel_range', chainparams['chain_hash'], 0, 1000000, - filters=['0109', '0107', '0012']) + filters=['0109', '0107', '0012', '0105']) # Either order! encoded1 = subprocess.run(['devtools/mkencoded', '--scids', '00', scid12, scid23], check=True,