Skip to content

Commit 1167171

Browse files
Trottrvagg
authored andcommittedSep 30, 2015
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: #3083 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Brendan Ashworth <[email protected]>
1 parent 5ada45b commit 1167171

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
 

‎test/fixtures/net-fd-passing-receiver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ receiver = net.createServer(function(socket) {
2626

2727
/* To signal the test runne we're up and listening */
2828
receiver.on('listening', function() {
29-
common.print('ready');
29+
console.log('ready');
3030
});
3131

3232
receiver.listen(path);

‎test/pummel/test-net-many-clients.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ for (var i = 0; i < bytes; i++) {
1919
var server = net.createServer(function(c) {
2020
console.log('connected');
2121
total_connections++;
22-
common.print('#');
22+
console.log('#');
2323
c.write(body);
2424
c.end();
2525
});
@@ -32,7 +32,7 @@ function runClient(callback) {
3232
client.setEncoding('utf8');
3333

3434
client.on('connect', function() {
35-
common.print('c');
35+
console.log('c');
3636
client.recved = '';
3737
client.connections += 1;
3838
});
@@ -51,7 +51,7 @@ function runClient(callback) {
5151
});
5252

5353
client.on('close', function(had_error) {
54-
common.print('.');
54+
console.log('.');
5555
assert.equal(false, had_error);
5656
assert.equal(bytes, client.recved.length);
5757

‎test/pummel/test-net-pause.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ server.on('listening', function() {
2424
var client = net.createConnection(common.PORT);
2525
client.setEncoding('ascii');
2626
client.on('data', function(d) {
27-
common.print(d);
27+
console.log(d);
2828
recv += d;
2929
});
3030

‎test/sequential/test-stdout-to-file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function test(size, useBuffer, cb) {
2424
fs.unlinkSync(tmpFile);
2525
} catch (e) {}
2626

27-
common.print(size + ' chars to ' + tmpFile + '...');
27+
console.log(size + ' chars to ' + tmpFile + '...');
2828

2929
childProcess.exec(cmd, function(err) {
3030
if (err) throw err;

0 commit comments

Comments
 (0)
Please sign in to comment.