Skip to content

Commit

Permalink
test: fix deprecation warning due to util.print
Browse files Browse the repository at this point in the history
PR-URL: #21265
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Lance Ball <lball@redhat.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
tniessen authored and targos committed Jun 16, 2018
1 parent e4a7e0d commit 9353093
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/parallel/test-child-process-double-pipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
const common = require('../common');
const assert = require('assert');
const os = require('os');
const util = require('util');
const spawn = require('child_process').spawn;

// We're trying to reproduce:
Expand Down Expand Up @@ -108,7 +107,7 @@ let result = '';
// print sed's output
sed.stdout.on('data', function(data) {
result += data.toString('utf8', 0, data.length);
util.print(data);
console.log(data);
});

sed.stdout.on('end', function(code) {
Expand Down

0 comments on commit 9353093

Please sign in to comment.