Skip to content

Conversation

@Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Sep 21, 2025

@metcoder95

Please checkout the change in `onHttp2SessionGoAway`

Also do bun test ./test/http2-dispatcher.js

Just proposing changes of the tests, as the changes of client-h2.js will be proposed in another PR.

@Uzlopak Uzlopak changed the title http2: refactor and split tests of http2.js into multiple files http2: jsdoc, minor change, refactor tests and split tests of http2.js into multiple files Sep 21, 2025
@Uzlopak Uzlopak requested review from Copilot and metcoder95 and removed request for metcoder95 September 21, 2025 22:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reorganizes HTTP/2 test files by splitting the large test/http2.js file into smaller, focused test files grouped by functionality. The changes also include minor JSDoc improvements and refactoring in the HTTP/2 client implementation.

  • Split the monolithic test/http2.js file into 13 separate test files organized by feature area
  • Added JSDoc type annotations to the HTTP/2 client implementation
  • Minor refactoring to improve code consistency and readability

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
test/http2.js Removed entire file content (1887 lines deleted)
test/http2-trailers.js New file containing HTTP/2 trailers handling test
test/http2-timeout.js New file containing HTTP/2 stream timeout test
test/http2-stream.js New file containing HTTP/2 stream error handling test
test/http2-pseudo-headers.js New file containing HTTP/2 pseudo-headers tests
test/http2-instantiation.js New file containing HTTP/2 client instantiation validation tests
test/http2-goaway.js New file containing HTTP/2 GOAWAY frame handling tests
test/http2-dispatcher.js New file containing HTTP/2 dispatcher method tests (stream, pipeline, connect, etc.)
test/http2-continue.js New file containing HTTP/2 continue handling test
test/http2-connection.js New file containing basic HTTP/2 connection tests
test/http2-body.js New file containing HTTP/2 request body handling tests
test/http2-alpn.js Modified existing file with minor cleanup and added completion awaits
test/http2-agent.js New file containing HTTP/2 agent tests
test/http2-abort.js New file containing HTTP/2 request abort tests
lib/dispatcher/client-h2.js Added JSDoc annotations and minor refactoring improvements

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Uzlopak Uzlopak changed the title http2: jsdoc, minor change, refactor tests and split tests of http2.js into multiple files http2: refactor and split tests of http2.js into multiple files Sep 22, 2025
Copy link
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

@Uzlopak Uzlopak merged commit 756d5d3 into main Sep 22, 2025
53 of 57 checks passed
@Uzlopak Uzlopak deleted the http2-tests branch September 22, 2025 08:21
@github-actions github-actions bot mentioned this pull request Jan 5, 2026
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.

3 participants