Skip to content

Commit

Permalink
test: replace callback functions with arrow functions
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
potham authored and rvagg committed Nov 28, 2018
1 parent 856a0fc commit 3fadc80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-client-timeout-option-with-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const server = http.createServer(() => {
// Never respond.
});

server.listen(0, options.host, function() {
server.listen(0, options.host, () => {
doRequest();
});

Expand All @@ -50,7 +50,7 @@ function doRequest() {
}));
req.end();

setTimeout(function() {
setTimeout(() => {
req.destroy();
assert.strictEqual(timeout_events, 1);
// Ensure the `timeout` event fired only once.
Expand Down

0 comments on commit 3fadc80

Please sign in to comment.