diff --git a/test/parallel/test-http-upgrade-client2.js b/test/parallel/test-http-upgrade-client2.js index 70eaeaa95f1706..221017819c562d 100644 --- a/test/parallel/test-http-upgrade-client2.js +++ b/test/parallel/test-http-upgrade-client2.js @@ -27,9 +27,10 @@ const CRLF = '\r\n'; const server = http.createServer(); server.on('upgrade', function(req, socket, head) { - socket.write('HTTP/1.1 101 Ok' + CRLF + - 'Connection: Upgrade' + CRLF + - 'Upgrade: Test' + CRLF + CRLF + 'head'); + socket.write(`HTTP/1.1 101 Ok${CRLF}` + + `Connection: Upgrade${CRLF}` + + `Upgrade: Test${CRLF}${CRLF}` + + 'head'); socket.on('end', function() { socket.end(); });