mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
fafdae4ce1
commit
bc1cb7b7fc
1 file changed
+1
-1
@@ -39,7 +39,7 @@ function getall() {
|
||||
pathname: '/',
|
||||
port: server.address().port
|
||||
}, cb);
|
||||
req.on('error', cb);
|
||||
|
||||
req.setTimeout(10, function() {
|
||||
console.log('timeout (expected)');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user