Skip to content

test: deflake issue-5137 stream count assertion#5243

Merged
mcollina merged 2 commits intonodejs:mainfrom
trivikr:test-issue-5137
May 10, 2026
Merged

test: deflake issue-5137 stream count assertion#5243
mcollina merged 2 commits intonodejs:mainfrom
trivikr:test-issue-5137

Conversation

@trivikr
Copy link
Copy Markdown
Member

@trivikr trivikr commented May 6, 2026

This relates to...

Fixes: #5218

Rationale

test/issue-5137.js could intermittently fail on macOS GitHub runners because it asserted the server-side HTTP/2 stream count immediately after the client request rejected. With a short stream timeout, the final retry could be dispatched but the server stream event might not have been observed yet.

Changes

The test now waits until the server observes all 3 expected request attempts before asserting the stream count, with a bounded 1s fallback so real retry regressions still fail.

Features

N/A

Bug Fixes

N/A

Breaking Changes and Deprecations

N/A

Status

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.28%. Comparing base (4f8f814) to head (e6f9672).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5243   +/-   ##
=======================================
  Coverage   93.27%   93.28%           
=======================================
  Files         110      110           
  Lines       36366    36384   +18     
=======================================
+ Hits        33922    33939   +17     
- Misses       2444     2445    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread test/issue-5137.js
@trivikr trivikr requested review from mcollina and metcoder95 May 9, 2026 06:53
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 296b424 into nodejs:main May 10, 2026
33 of 35 checks passed
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.

[flaky] test/issue-5137.js

4 participants