Skip to content

Commit f88219c

Browse files
committed
test: fix dangerous .map in test/parallel/test-http-set-trailers.js
1 parent 347000c commit f88219c

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)