Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4243903

Browse filesBrowse files
robtpatonMylesBorins
authored andcommitted
test: replace string concatenation with template
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>
1 parent f831744 commit 4243903
Copy full SHA for 4243903

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-http-incoming-pipelined-socket-destroy.js
+3-2Lines changed: 3 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.