Skip to content

Commit

Permalink
test: replace string concatenation with template
Browse files Browse the repository at this point in the history
PR-URL: #15915
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
robtpaton authored and MylesBorins committed Oct 11, 2017
1 parent 802f99b commit 2d25a3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-http-incoming-pipelined-socket-destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ const server = http.createServer(common.mustCall(function(req, res) {

// Make a bunch of requests pipelined on the same socket
function generator(seeds) {
const port = server.address().port;
return seeds.map(function(r) {
return 'GET /' + r + ' HTTP/1.1\r\n' +
`Host: localhost:${server.address().port}\r\n` +
return `GET /${r} HTTP/1.1\r\n` +
`Host: localhost:${port}\r\n` +
'\r\n' +
'\r\n';
}).join('');
Expand Down

0 comments on commit 2d25a3b

Please sign in to comment.