Skip to content

pyln-testing: Fix flakyness on test_no_delay assertion introducing a statistical margin#9231

Open
ScuttoZ wants to merge 3 commits into
ElementsProject:masterfrom
ScuttoZ:fix-flake-test_no_delay-9218
Open

pyln-testing: Fix flakyness on test_no_delay assertion introducing a statistical margin#9231
ScuttoZ wants to merge 3 commits into
ElementsProject:masterfrom
ScuttoZ:fix-flake-test_no_delay-9218

Conversation

@ScuttoZ

@ScuttoZ ScuttoZ commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Introduced a statistical margin instead of relative time when calculating nagle-disabled time-saves to reduce flakiness in test_connection.py::test_no_delay.

Defaults are now 100 round trips with and without nagle and the assertions use a margin of 3 times the standard error (subtracted for Linux since the time-save is expected to be more significant).

Changelog-None

@ScuttoZ ScuttoZ requested a review from ddustin June 17, 2026 16:32
@ScuttoZ ScuttoZ linked an issue Jun 18, 2026 that may be closed by this pull request
@ScuttoZ ScuttoZ added this to the v26.09 milestone Jun 18, 2026
@ScuttoZ ScuttoZ force-pushed the fix-flake-test_no_delay-9218 branch from be1f8c3 to 185481a Compare June 18, 2026 13:21
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_no_delay

1 participant