Skip to content

Commit

Permalink
test: add common.mustCall in test-http-abort-client.js
Browse files Browse the repository at this point in the history
PR-URL: #27449
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Yorkie Liu <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
y1d7ng authored and oyyd committed Apr 30, 2019
1 parent 0fbd852 commit 578b31e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-abort-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ const common = require('../common');
const http = require('http');

let serverRes;
const server = http.Server((req, res) => {
const server = http.Server(common.mustCall((req, res) => {
serverRes = res;
res.writeHead(200);
res.write('Part of my res.');
});
}));

server.listen(0, common.mustCall(() => {
http.get({
Expand Down

0 comments on commit 578b31e

Please sign in to comment.