From 578b31e14b6f80e173c6b90b0a9e60b9a14dfca6 Mon Sep 17 00:00:00 2001 From: OneNail Date: Sun, 28 Apr 2019 16:45:58 +0800 Subject: [PATCH] test: add common.mustCall in test-http-abort-client.js PR-URL: https://github.com/nodejs/node/pull/27449 Reviewed-By: Weijia Wang Reviewed-By: Gireesh Punathil Reviewed-By: Yorkie Liu Reviewed-By: Yongsheng Zhang Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott --- test/parallel/test-http-abort-client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-abort-client.js b/test/parallel/test-http-abort-client.js index eda08ced97c55c..80492b9d22734d 100644 --- a/test/parallel/test-http-abort-client.js +++ b/test/parallel/test-http-abort-client.js @@ -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({