Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6f28557

Browse files
oyydtargos
authored andcommittedAug 11, 2018
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: #22185 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent e313961 commit 6f28557

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)
Please sign in to comment.