Skip to content

Commit 2d25a3b

Browse files
robtpatonMylesBorins
authored andcommitted
test: replace string concatenation with template
PR-URL: #15915 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 802f99b commit 2d25a3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel/test-http-incoming-pipelined-socket-destroy.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ const server = http.createServer(common.mustCall(function(req, res) {
6060

6161
// Make a bunch of requests pipelined on the same socket
6262
function generator(seeds) {
63+
const port = server.address().port;
6364
return seeds.map(function(r) {
64-
return 'GET /' + r + ' HTTP/1.1\r\n' +
65-
`Host: localhost:${server.address().port}\r\n` +
65+
return `GET /${r} HTTP/1.1\r\n` +
66+
`Host: localhost:${port}\r\n` +
6667
'\r\n' +
6768
'\r\n';
6869
}).join('');

0 commit comments

Comments
 (0)