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 <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
oyyd authored and rvagg committed Aug 15, 2018
1 parent fafdae4 commit bc1cb7b
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 bc1cb7b

Please sign in to comment.