From cbbb229c81df823145046b1855129ff9706667d3 Mon Sep 17 00:00:00 2001 From: Jakub Mrowiec - Alkagar Date: Fri, 6 Oct 2017 09:25:13 -0700 Subject: [PATCH] test: update http test client function signatures remove unused head arguments PR-URL: https://github.com/nodejs/node/pull/15807 Reviewed-By: Ryan Graham Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/parallel/test-http-upgrade-client2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-upgrade-client2.js b/test/parallel/test-http-upgrade-client2.js index 221017819c562d..8883faa9e05067 100644 --- a/test/parallel/test-http-upgrade-client2.js +++ b/test/parallel/test-http-upgrade-client2.js @@ -26,7 +26,7 @@ const http = require('http'); const CRLF = '\r\n'; const server = http.createServer(); -server.on('upgrade', function(req, socket, head) { +server.on('upgrade', function(req, socket) { socket.write(`HTTP/1.1 101 Ok${CRLF}` + `Connection: Upgrade${CRLF}` + `Upgrade: Test${CRLF}${CRLF}` + @@ -47,7 +47,7 @@ server.listen(0, common.mustCall(function() { }); let wasUpgrade = false; - function onUpgrade(res, socket, head) { + function onUpgrade(res, socket) { console.log('client upgraded'); wasUpgrade = true;