Skip to content

Commit 6498d80

Browse files
committed
test: handle errors correctly in test-gc-http-client-timeout.js
1 parent 0b85435 commit 6498d80

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)