Skip to content

tests: fix test_funding_v2_cancel_race flake - #9523

Open
daywalker90 wants to merge 1 commit into
ElementsProject:masterfrom
daywalker90:fix-test_funding_v2_cancel_race-flake
Open

daywalker90 wants to merge 1 commit into
ElementsProject:masterfrom
daywalker90:fix-test_funding_v2_cancel_race-flake

Conversation

@daywalker90

Copy link
Copy Markdown
Collaborator

openchannel_update is idempotent: once the commitments are secured a repeat call returns the existing inflight, so two racing openchannel_update calls can both legitimately succeed and the "only up to one should succeed" assertion no longer holds.

Keep the original intent (catching commands that fight over the shared command pointer and hang) by relying on result(TIMEOUT) raising TimeoutError, and replace the count check with the stronger invariant that no two distinct secured PSBTs (i.e. two commitments) were made.

Changelog-None

openchannel_update is idempotent: once the commitments are secured a
repeat call returns the existing inflight, so two racing
openchannel_update calls can both legitimately succeed and the "only up
to one should succeed" assertion no longer holds.

Keep the original intent (catching commands that fight over the shared
command pointer and hang) by relying on result(TIMEOUT) raising
TimeoutError, and replace the count check with the stronger invariant
that no two distinct secured PSBTs (i.e. two commitments) were made.

Changelog-None
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