test: handle errors correctly in GC http test

In test-gc-http-client-timeout.js, res.resume is not a function if error
occurs. Remove the error handler.

PR-URL: https://github.com/nodejs/node/pull/22185
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Ouyang Yadong authored and Rod Vagg committed 2018-08-15 20:23:17 +10:00
1 parent fafdae4ce1
commit bc1cb7b7fc
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ function getall() {
pathname: '/',
port: server.address().port
}, cb);
req.on('error', cb);
req.setTimeout(10, function() {
console.log('timeout (expected)');
});