diff options
author | Rich Trott <rtrott@gmail.com> | 2015-09-26 16:16:35 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2015-09-28 13:21:15 -0700 |
commit | 306936e98fa6c06b52095f5a369a03c6e722b285 (patch) | |
tree | f845b6f9fea7697d92cd376e07e85578bee04f5c /test/pummel/test-net-many-clients.js | |
parent | 44efd66132f9f9058d7ead0547d9ab2d3e06b528 (diff) | |
download | android-node-v8-306936e98fa6c06b52095f5a369a03c6e722b285.tar.gz android-node-v8-306936e98fa6c06b52095f5a369a03c6e722b285.tar.bz2 android-node-v8-306936e98fa6c06b52095f5a369a03c6e722b285.zip |
test: change calls to deprecated util.print()
common.print() is just util.print() and as such prints a deprecation
warning. Per docs, update to console.log().
PR-URL: https://github.com/nodejs/node/pull/3083
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
Diffstat (limited to 'test/pummel/test-net-many-clients.js')
-rw-r--r-- | test/pummel/test-net-many-clients.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pummel/test-net-many-clients.js b/test/pummel/test-net-many-clients.js index b70efbda58..6d9dde1ddb 100644 --- a/test/pummel/test-net-many-clients.js +++ b/test/pummel/test-net-many-clients.js @@ -19,7 +19,7 @@ for (var i = 0; i < bytes; i++) { var server = net.createServer(function(c) { console.log('connected'); total_connections++; - common.print('#'); + console.log('#'); c.write(body); c.end(); }); @@ -32,7 +32,7 @@ function runClient(callback) { client.setEncoding('utf8'); client.on('connect', function() { - common.print('c'); + console.log('c'); client.recved = ''; client.connections += 1; }); @@ -51,7 +51,7 @@ function runClient(callback) { }); client.on('close', function(had_error) { - common.print('.'); + console.log('.'); assert.equal(false, had_error); assert.equal(bytes, client.recved.length); |