Skip to content

test: avoid chain notifier mock deadlock - #1197

Open
starius wants to merge 1 commit into
lightninglabs:masterfrom
starius:fix-test-deadlock
Open

test: avoid chain notifier mock deadlock#1197
starius wants to merge 1 commit into
lightninglabs:masterfrom
starius:fix-test-deadlock

Conversation

@starius

@starius starius commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Release the mock LND lock before sending the initial block height. A concurrent height notification can fill the buffered channel. Holding the lock while sending would then block invoice lookups and make the static loop-in test time out.

Pull Request Checklist

  • Add an entry to docs/release-notes/release-notes-next.md, or apply the
    no-changelog label (required by CI)

Release the mock LND lock before sending the initial block height. A
concurrent height notification can fill the buffered channel. Holding
the lock while sending would then block invoice lookups and make the
static loop-in test time out.
@starius starius added the no-changelog Skip the release notes CI check label Aug 11, 2026
@starius
starius marked this pull request as ready for review August 11, 2026 17:59

@GustavoStingelin GustavoStingelin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this PR? Is there any flaky test that we are trying to fix?

@starius

starius commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator Author

Yes, this was identified when looking though a red CI log.

@GustavoStingelin

Copy link
Copy Markdown
Contributor

Cool, I think we should reference the failed CIs here as documentation

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

Labels

no-changelog Skip the release notes CI check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants