From 935309325b5451517bb9d0b0ec367428d8082ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 11 Jun 2018 21:45:36 +0200 Subject: [PATCH] test: fix deprecation warning due to util.print MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/21265 Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca Reviewed-By: Lance Ball Reviewed-By: Michaƫl Zasso Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell --- test/parallel/test-child-process-double-pipe.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parallel/test-child-process-double-pipe.js b/test/parallel/test-child-process-double-pipe.js index 08d5b1f9cfb72b..8503ebf69cc89d 100644 --- a/test/parallel/test-child-process-double-pipe.js +++ b/test/parallel/test-child-process-double-pipe.js @@ -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) {