FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: add unexpected disconnect guards to http2 tests by Develop-KIM · Pull Request #5533 · nodejs/undici · GitHub

/ undici Public

test: add unexpected disconnect guards to http2 tests - #5533

Merged
metcoder95 merged 1 commit into
nodejs:mainfrom
Develop-KIM:test/h2-disconnect-guards
Jul 16, 2026
Merged

test: add unexpected disconnect guards to http2 tests#5533
metcoder95 merged 1 commit into
nodejs:mainfrom
Develop-KIM:test/h2-disconnect-guards

Conversation

Copy link
Copy Markdown
Contributor

Adds the disconnect guard pattern from docs/docs/best-practices/writing-tests.md
to the happy-path HTTP/2 test files, so silent disconnect/reconnect cycles fail
the tests instead of passing unnoticed.

Files covered (12 guards): http2-pseudo-headers.js, http2-continue.js,
http2-connection.js, http2-pipelining-default.js (incl. one Pool guard).

Intentionally skipped: http2-instantiation.js (ALPN-mismatch test where
disconnect is expected) and http2-invalid-connection-headers.js (reconnection
is the behavior under test). Happy to cover http2-body.js and the connect-*
group in follow-ups.

Refs: #251

🤖 Generated with Claude Code

Add the disconnect guard pattern from docs/best-practices/writing-tests.md
to the happy-path HTTP/2 test files so silent reconnects fail the tests.

Refs: #251

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.44%. Comparing base (3c662a5) to head (f37e858).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5533      +/-   ##
==========================================
- Coverage   93.44%   93.44%   -0.01%     
==========================================
  Files         110      110              
  Lines       37329    37329              
==========================================
- Hits        34883    34882       -1     
- Misses       2446     2447       +1     

☔ View full report in Codecov by Harness.
📢 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.

metcoder95 merged commit 08aae09 into nodejs:main Jul 16, 2026
36 checks passed
github-actions Bot mentioned this pull request Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL