Skip to content

Commit 77b8a42

Browse files
committed
pytest: fix flake in test_splicing.py::test_route_by_old_scid
``` 2025-09-30T00:07:37.3118831Z _________________ ERROR at teardown of test_route_by_old_scid __________________ ... 2025-09-30T00:07:37.3131523Z request.node.has_errors = True 2025-09-30T00:07:37.3131989Z > raise ValueError(str(errors)) 2025-09-30T00:07:37.3132834Z E ValueError: 2025-09-30T00:07:37.3133226Z E Node errors: 2025-09-30T00:07:37.3133632Z E - lightningd-1: had warning messages 2025-09-30T00:07:37.3134086Z E Global errors: ... 2025-09-30T00:07:37.5835258Z lightningd-2 2025-09-30T00:04:24.544Z TRACE 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-gossipd: Bad gossip order: channel_announcement: no unspent txout 109x1x1 2025-09-30T00:07:37.5835659Z lightningd-2 2025-09-30T00:04:24.544Z DEBUG 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-connectd: peer_out WIRE_WARNING ``` Signed-off-by: Rusty Russell <[email protected]>
1 parent 5d5a3ef commit 77b8a42

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_splicing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,11 @@ def test_route_by_old_scid(node_factory, bitcoind):
527527
l1.rpc.sendpay(route, inv['payment_hash'], payment_secret=inv['payment_secret'])
528528
l1.rpc.waitsendpay(inv['payment_hash'])
529529

530+
# Make sure l1 has seen and processed announcement for new splice
531+
# scid, otherwise we can get gossip warning here (which breaks CI) if we splice again.
532+
scid = only_one(l3.rpc.listchannels(source=l3.info['id'])['channels'])['short_channel_id']
533+
wait_for(lambda: l1.rpc.listchannels(short_channel_id=scid)['channels'] != [])
534+
530535
# Let's splice again, so the original scid is two behind the times.
531536
l3.fundwallet(200000)
532537
funds_result = l3.rpc.fundpsbt("109000sat", "slow", 166, excess_as_change=True)

0 commit comments

Comments
 (0)