Skip to content

test: add coverage for app.listen() variants #6476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2025

Conversation

kgarg1
Copy link
Contributor

@kgarg1 kgarg1 commented Apr 22, 2025

  • verify alternate signatures (port+host+backlog)
  • verify server.address() shape

- verify alternate signatures (port+host+backlog)
- verify server.address() shape
@bjohansebas bjohansebas merged commit b8ab465 into expressjs:master May 29, 2025
23 checks passed
@bjohansebas
Copy link
Member

thanks @kgarg1!

Copy link
Member

@wesleytodd wesleytodd left a comment

Choose a reason for hiding this comment

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

Not going to ask that these be backed out, but they are testing Node.js apis not Express ones. I know it looks like they are testing listen, but the actual assertions are not.

Typically we don't want to test anything other than our api. I would prefer if we could take a second look at these and try to compare the coverage the add for express code and modify them to better test what that express is correctly passing the values to Node.js.

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