diff options
author | LiviaMedeiros <livia@cirno.name> | 2022-05-13 20:03:24 +0300 |
---|---|---|
committer | Beth Griggs <bgriggs@redhat.com> | 2022-05-16 13:12:20 +0300 |
commit | 0670843b24a0bc03137c504512a12487b5ba269c (patch) | |
tree | e0aff89e55ad848e9919751422305f9952a11061 /test | |
parent | f53ed9d1bb15398a09bd55e3013aa882586ee750 (diff) |
test: fix dangerous .map in `test/parallel/test-http-set-trailers.js`
PR-URL: https://github.com/nodejs/node/pull/43087
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-http-set-trailers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-set-trailers.js b/test/parallel/test-http-set-trailers.js index 2197de9b0b2..17a936f528e 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()); }); |