Skip to content

Commit 0670843

Browse files
LiviaMedeirosBethGriggs
authored andcommitted
test: fix dangerous .map in test/parallel/test-http-set-trailers.js
PR-URL: #43087 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent f53ed9d commit 0670843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-http-set-trailers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const server = http.createServer((req, res) => {
9696
});
9797
server.listen(0, () => {
9898
Promise.all([testHttp10, testHttp11, testClientTrailers]
99-
.map(util.promisify)
99+
.map((f) => util.promisify(f))
100100
.map((f) => f(server.address().port)))
101101
.then(() => server.close());
102102
});

0 commit comments

Comments
 (0)