Skip to content

Commit 4243903

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 f831744 commit 4243903

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ const server = http.createServer(common.mustCall(function(req, res) {
3939

4040
// Make a bunch of requests pipelined on the same socket
4141
function generator(seeds) {
42+
const port = server.address().port;
4243
return seeds.map(function(r) {
43-
return 'GET /' + r + ' HTTP/1.1\r\n' +
44-
`Host: localhost:${server.address().port}\r\n` +
44+
return `GET /${r} HTTP/1.1\r\n` +
45+
`Host: localhost:${port}\r\n` +
4546
'\r\n' +
4647
'\r\n';
4748
}).join('');

0 commit comments

Comments
 (0)