Skip to content

flake: fix in-flight statuses causing flakyness when asserting payment success/failure#9238

Open
ScuttoZ wants to merge 1 commit into
ElementsProject:masterfrom
ScuttoZ:fix-flake-test_sendpay_grouping
Open

flake: fix in-flight statuses causing flakyness when asserting payment success/failure#9238
ScuttoZ wants to merge 1 commit into
ElementsProject:masterfrom
ScuttoZ:fix-flake-test_sendpay_grouping

Conversation

@ScuttoZ

@ScuttoZ ScuttoZ commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

The test is showing flakyness at the final assertion so I introduced a "wait_for" that waits for all xpay-n layers to be removed from askrene before checking settlement outcome, which in theory should prevent any "pending" to make it to the final step of the test.
If for some reason a payment gets stuck in pending, the test should timeout and fail.

Changelog-None

@ScuttoZ ScuttoZ linked an issue Jun 19, 2026 that may be closed by this pull request
@ScuttoZ ScuttoZ added this to the v26.09 milestone Jun 19, 2026
…ay-n layers to be removed from askrene before checking settlement outcome
@ScuttoZ ScuttoZ force-pushed the fix-flake-test_sendpay_grouping branch from 022147a to e6e6554 Compare June 19, 2026 13:28
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.

CI Flake test_sendpay_grouping

1 participant