mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: use template strings in parallel tests
PR-URL: https://github.com/nodejs/node/pull/32549 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
0be9ebb722
commit
a6ab883eaa
7 changed files with 22 additions and 22 deletions
|
@ -10,14 +10,14 @@ let next = null;
|
|||
|
||||
const server = http.createServer((req, res) => {
|
||||
res.writeHead(200, {
|
||||
'Content-Length': '' + (helloWorld.length + helloAgainLater.length)
|
||||
'Content-Length': `${(helloWorld.length + helloAgainLater.length)}`
|
||||
});
|
||||
|
||||
// We need to make sure the data is flushed
|
||||
// before writing again
|
||||
next = () => {
|
||||
res.end(helloAgainLater);
|
||||
next = () => {};
|
||||
next = () => { };
|
||||
};
|
||||
|
||||
res.write(helloWorld);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue