Skip to content

Commit 3fadc80

Browse files
pothamrvagg
authored andcommitted
test: replace callback functions with arrow functions
PR-URL: #24432 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 856a0fc commit 3fadc80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-client-timeout-option-with-agent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const server = http.createServer(() => {
2424
// Never respond.
2525
});
2626

27-
server.listen(0, options.host, function() {
27+
server.listen(0, options.host, () => {
2828
doRequest();
2929
});
3030

@@ -50,7 +50,7 @@ function doRequest() {
5050
}));
5151
req.end();
5252

53-
setTimeout(function() {
53+
setTimeout(() => {
5454
req.destroy();
5555
assert.strictEqual(timeout_events, 1);
5656
// Ensure the `timeout` event fired only once.

0 commit comments

Comments
 (0)