diff options
Diffstat (limited to 'test/simple/test-http-upgrade-client2.js')
-rw-r--r-- | test/simple/test-http-upgrade-client2.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/simple/test-http-upgrade-client2.js b/test/simple/test-http-upgrade-client2.js index 504850591..3550f70f5 100644 --- a/test/simple/test-http-upgrade-client2.js +++ b/test/simple/test-http-upgrade-client2.js @@ -1,7 +1,8 @@ var common = require("../common"); -var assert = common.assert -var http = require('http'), - CRLF = '\r\n'; +var assert = require('assert'); +var http = require('http'); + +var CRLF = '\r\n'; var server = http.createServer(); server.on('upgrade', function(req, socket, head) { @@ -13,6 +14,7 @@ server.on('upgrade', function(req, socket, head) { }); }); +var successCount = 0; server.listen(common.PORT, function () { @@ -45,7 +47,6 @@ server.listen(common.PORT, function () { } - successCount = 0; upgradeRequest(function() { successCount++; upgradeRequest(function() { |