Skip to content

flake: Fix test_graceful_htlc to be flexible for notifs#9226

Merged
madelinevibes merged 1 commit into
ElementsProject:masterfrom
ddustin:ddustin/test_graceful_htlc_flakefix
Jun 19, 2026
Merged

flake: Fix test_graceful_htlc to be flexible for notifs#9226
madelinevibes merged 1 commit into
ElementsProject:masterfrom
ddustin:ddustin/test_graceful_htlc_flakefix

Conversation

@ddustin

@ddustin ddustin commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

The test_graceful_htlc test can receive an extra notification if the test is running slowly enough.

This changes how the test looks at notifications by explicitly incrementing the notification index.

Then, we make it notice and ignore the first RCVD_ADD_REVOCATION notification, which is unwanted in the test but can occur if the server is running slow enough.

Fixes #9219

@madelinevibes madelinevibes added this to the v26.09 milestone Jun 17, 2026
@madelinevibes madelinevibes added the Status::Ready for Review The work has been completed and is now awaiting evaluation or approval. label Jun 17, 2026
@daywalker90 daywalker90 force-pushed the ddustin/test_graceful_htlc_flakefix branch from d21a9c0 to 0d007bb Compare June 17, 2026 09:21

@nGoline nGoline left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just a minor issue that might hide the real intent. Otherwise looks good.

Comment thread tests/test_misc.py
@madelinevibes madelinevibes removed the request for review from daywalker90 June 18, 2026 12:06
@madelinevibes madelinevibes removed the Status::Ready for Review The work has been completed and is now awaiting evaluation or approval. label Jun 18, 2026
@ddustin ddustin force-pushed the ddustin/test_graceful_htlc_flakefix branch from 0d007bb to 5951c81 Compare June 18, 2026 16:39

@nGoline nGoline left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

The test_graceful_htlc test can receive an extra notification if the test is running slowly enough.

This changes how the test looks at notifications by explicitly incrementing the notification index.

Then, we make it notice and ignore the first RCVD_ADD_REVOCATION notification, which is unwanted in the test but can occur if the server is running slow enough.

Changelog-None
@madelinevibes madelinevibes force-pushed the ddustin/test_graceful_htlc_flakefix branch from 5951c81 to 3204c71 Compare June 19, 2026 00:32
@madelinevibes madelinevibes merged commit 6994681 into ElementsProject:master Jun 19, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI Flake test_graceful_htlc

4 participants