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 <starkwang@126.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
y1d7ng authored and targos committed Apr 30, 2019
1 parent f4124d5 commit 457549b
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 457549b

Please sign in to comment.