Skip to content

Commit

Permalink
test: fix dangerous .map in test/parallel/test-http-set-trailers.js
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
LiviaMedeiros authored and danielleadams committed Jun 27, 2022
1 parent f5f2c86 commit 94a3a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http-set-trailers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});

0 comments on commit 94a3a3a

Please sign in to comment.