test: add common.mustCall in test-http-abort-client.js
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
0fbd852578
commit
578b31e14b
@ -24,11 +24,11 @@ const common = require('../common');
|
|||||||
const http = require('http');
|
const http = require('http');
|
||||||
|
|
||||||
let serverRes;
|
let serverRes;
|
||||||
const server = http.Server((req, res) => {
|
const server = http.Server(common.mustCall((req, res) => {
|
||||||
serverRes = res;
|
serverRes = res;
|
||||||
res.writeHead(200);
|
res.writeHead(200);
|
||||||
res.write('Part of my res.');
|
res.write('Part of my res.');
|
||||||
});
|
}));
|
||||||
|
|
||||||
server.listen(0, common.mustCall(() => {
|
server.listen(0, common.mustCall(() => {
|
||||||
http.get({
|
http.get({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user