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:
Daniel Estiven Rico Posada 2020-03-29 09:52:44 -05:00 committed by Anna Henningsen
parent 0be9ebb722
commit a6ab883eaa
No known key found for this signature in database
GPG key ID: A94130F0BFC8EBE9
7 changed files with 22 additions and 22 deletions

View file

@ -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);