Skip to content

tests: wait for announcements in test_splice_rbf_htlc_sigs - #9611

Open
daywalker90 wants to merge 1 commit into
ElementsProject:masterfrom
daywalker90:fix/splice-rbf-htlc-sigs-gossip-flake
Open

daywalker90 wants to merge 1 commit into
ElementsProject:masterfrom
daywalker90:fix/splice-rbf-htlc-sigs-gossip-flake

Conversation

@daywalker90

Copy link
Copy Markdown
Collaborator

The splice changes the channel's short_channel_id. If the test does not wait for the channel to be announced first, a node can receive a node_announcement for a peer before the channel_announcement for the new scid. gossipd then logs "Bad gossip order: node_announcement: unknown node", and the teardown check fails the test even though its body passes.

Wait for announcements before splicing, as the other splice tests do.

Changelog-None

Fixes CI flake:

2026-10-07T14:12:54.3754518Z ERROR tests/test_splicing.py::test_splice_rbf_htlc_sigs - ValueError: 
2026-10-07T14:12:54.3754594Z Node errors:
2026-10-07T14:12:54.3754694Z  - lightningd-1: had bad gossip messages

The splice changes the channel's short_channel_id. If the test does not
wait for the channel to be announced first, a node can receive a
node_announcement for a peer before the channel_announcement for the new
scid. gossipd then logs "Bad gossip order: node_announcement: unknown
node", and the teardown check fails the test even though its body passes.

Wait for announcements before splicing, as the other splice tests do.

Changelog-None
@daywalker90
daywalker90 requested a review from jaonoctus October 8, 2026 12:20

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant