Skip to content

Commit 9353093

Browse files
tniessentargos
authored andcommitted
test: fix deprecation warning due to util.print
PR-URL: #21265 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent e4a7e0d commit 9353093

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/parallel/test-child-process-double-pipe.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
const common = require('../common');
2424
const assert = require('assert');
2525
const os = require('os');
26-
const util = require('util');
2726
const spawn = require('child_process').spawn;
2827

2928
// We're trying to reproduce:
@@ -108,7 +107,7 @@ let result = '';
108107
// print sed's output
109108
sed.stdout.on('data', function(data) {
110109
result += data.toString('utf8', 0, data.length);
111-
util.print(data);
110+
console.log(data);
112111
});
113112

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

0 commit comments

Comments
 (0)