test: fix deprecation warning due to util.print
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
772d390746
commit
0179e940cc
@ -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:
|
||||
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user