From 3c9fd0ca5b60f9383ca5b8170e54e95a89fca096 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 2 Feb 2024 21:09:21 +1030 Subject: [PATCH] pytest: fix another gossip flake. ``` 2024-02-02T10:30:38.6479143Z __________________ ERROR at teardown of test_multifunding_one __________________ ... 2024-02-02T10:30:38.6491895Z > raise ValueError(str(errors)) 2024-02-02T10:30:38.6492208Z E ValueError: 2024-02-02T10:30:38.6492465Z E Node errors: 2024-02-02T10:30:38.6492833Z E - lightningd-2: had bad gossip messages 2024-02-02T10:30:38.6493535Z E Global errors: ... 2024-02-02T10:30:38.7458545Z lightningd-2 2024-02-02T10:25:48.410Z DEBUG 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-gossipd: Ignoring future channel_announcment for 103x2x1 (current block 102) 2024-02-02T10:30:38.7460140Z lightningd-2 2024-02-02T10:25:48.411Z UNUSUAL lightningd: Bad gossip order: could not find channel 103x2x1 for peer's channel update ``` Signed-off-by: Rusty Russell --- tests/test_connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index 8eadd6e85..cbf3ad6b6 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -1953,7 +1953,8 @@ def test_multifunding_one(node_factory, bitcoind): l1.rpc.multifundchannel(destinations, minconf=0) - bitcoind.generate_block(6, wait_for_mempool=1) + mine_funding_to_announce(bitcoind, [l1, l2, l3], num_blocks=6) + for node in [l1, l2, l3]: node.daemon.wait_for_log(r'to CHANNELD_NORMAL')