Skip to content

Commit 2e37d0f

Browse files
oyydTrott
authored andcommitted
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: nodejs#22185 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 3ce6bc3 commit 2e37d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-gc-http-client-timeout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function getall() {
3939
pathname: '/',
4040
port: server.address().port
4141
}, cb);
42-
req.on('error', cb);
42+
4343
req.setTimeout(10, function() {
4444
console.log('timeout (expected)');
4545
});

0 commit comments

Comments
 (0)