summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-upgrade-server2.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2015-09-26 15:00:51 -0700
committerRich Trott <rtrott@gmail.com>2015-10-07 11:13:38 -0700
commit099cfbc58cb95b221cbbd49c6d161eae316c752d (patch)
treedab846bbcef89323ca1e3adb2fd05db383e935b9 /test/parallel/test-http-upgrade-server2.js
parenta334ddc467af6bfb3a93245a7e6f571c8dd01fa2 (diff)
downloadandroid-node-v8-099cfbc58cb95b221cbbd49c6d161eae316c752d.tar.gz
android-node-v8-099cfbc58cb95b221cbbd49c6d161eae316c752d.tar.bz2
android-node-v8-099cfbc58cb95b221cbbd49c6d161eae316c752d.zip
test: remove deprecated error logging
common.error() is just deprecated util.error() renamed. Remove calls to it and some other extraneous console logging in tests. PR-URL: https://github.com/nodejs/node/pull/3079 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/parallel/test-http-upgrade-server2.js')
-rw-r--r--test/parallel/test-http-upgrade-server2.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/parallel/test-http-upgrade-server2.js b/test/parallel/test-http-upgrade-server2.js
index 9a22df52c2..dec3bab1ca 100644
--- a/test/parallel/test-http-upgrade-server2.js
+++ b/test/parallel/test-http-upgrade-server2.js
@@ -5,12 +5,10 @@ var http = require('http');
var net = require('net');
var server = http.createServer(function(req, res) {
- common.error('got req');
throw new Error('This shouldn\'t happen.');
});
server.on('upgrade', function(req, socket, upgradeHead) {
- common.error('got upgrade event');
// test that throwing an error from upgrade gets
// is uncaught
throw new Error('upgrade error');
@@ -19,7 +17,6 @@ server.on('upgrade', function(req, socket, upgradeHead) {
var gotError = false;
process.on('uncaughtException', function(e) {
- common.error('got \'clientError\' event');
assert.equal('upgrade error', e.message);
gotError = true;
process.exit(0);
@@ -30,7 +27,6 @@ server.listen(common.PORT, function() {
var c = net.createConnection(common.PORT);
c.on('connect', function() {
- common.error('client wrote message');
c.write('GET /blah HTTP/1.1\r\n' +
'Upgrade: WebSocket\r\n' +
'Connection: Upgrade\r\n' +
@@ -42,7 +38,6 @@ server.listen(common.PORT, function() {
});
c.on('close', function() {
- common.error('client close');
server.close();
});
});