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({