Skip to content

Commit

Permalink
test: handle errors correctly in GC http test
Browse files Browse the repository at this point in the history
In test-gc-http-client-timeout.js, res.resume is not a function if error
occurs. Remove the error handler.

PR-URL: #22185
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
oyyd authored and targos committed Aug 11, 2018
1 parent e313961 commit 6f28557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-gc-http-client-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function getall() {
pathname: '/',
port: server.address().port
}, cb);
req.on('error', cb);

req.setTimeout(10, function() {
console.log('timeout (expected)');
});
Expand Down

0 comments on commit 6f28557

Please sign in to comment.