diff --git a/test/parallel/test-child-process-silent.js b/test/parallel/test-child-process-silent.js index 562b34ad823e17..387164381bc4a1 100644 --- a/test/parallel/test-child-process-silent.js +++ b/test/parallel/test-child-process-silent.js @@ -41,7 +41,7 @@ if (process.argv[2] === 'pipe') { stdoutData = true; }); let stderrData = false; - parent.stdout.on('data', function() { + parent.stderr.on('data', function() { stderrData = true; });