From 80df97c12605b619b464766ea89274f8503b8a29 Mon Sep 17 00:00:00 2001 From: LiviaMedeiros Date: Sat, 14 May 2022 01:03:24 +0800 Subject: [PATCH] test: fix dangerous .map in `test/parallel/test-http-set-trailers.js` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/43087 Reviewed-By: Luigi Pinca Reviewed-By: Michaël Zasso Reviewed-By: Rich Trott Reviewed-By: Zeyu "Alex" Yang Reviewed-By: Tobias Nießen --- test/parallel/test-http-set-trailers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http-set-trailers.js b/test/parallel/test-http-set-trailers.js index 2197de9b0b229a..17a936f528e96f 100644 --- a/test/parallel/test-http-set-trailers.js +++ b/test/parallel/test-http-set-trailers.js @@ -96,7 +96,7 @@ const server = http.createServer((req, res) => { }); server.listen(0, () => { Promise.all([testHttp10, testHttp11, testClientTrailers] - .map(util.promisify) + .map((f) => util.promisify(f)) .map((f) => f(server.address().port))) .then(() => server.close()); });