Skip to content
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

test: handle errors correctly in test-gc-http-client-timeout.js #22185

Closed
wants to merge 1 commit into from

Conversation

oyyd
Copy link
Contributor

@oyyd oyyd commented Aug 8, 2018

Before this, test-gc-http-client-timeout.js logs res.resume is not a function when errors are emitted.

This test sometimes fails on my OSX because getaddrinfo may return ENOTFOUND. (The actual uv error code is UV_EAI_NONAME.)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Aug 8, 2018
@@ -39,7 +39,9 @@ function getall() {
pathname: '/',
port: server.address().port
}, cb);
req.on('error', cb);
req.on('error', (err) => {
Copy link
Member

Choose a reason for hiding this comment

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

Not having this listener would result in the same outcome, I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed.

@Trott
Copy link
Member

Trott commented Aug 9, 2018

@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 9, 2018
@jasnell
Copy link
Member

jasnell commented Aug 10, 2018

Trott pushed a commit to Trott/io.js that referenced this pull request Aug 10, 2018
In test-gc-http-client-timeout.js, res.resume is not a function if error
occurs. Remove the error handler.

PR-URL: nodejs#22185
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@Trott
Copy link
Member

Trott commented Aug 10, 2018

Landed in 2e37d0f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants