diff --git a/test/parallel/test-child-process-silent.js b/test/parallel/test-child-process-silent.js index b280e101810c54..20ad9683dfa622 100644 --- a/test/parallel/test-child-process-silent.js +++ b/test/parallel/test-child-process-silent.js @@ -62,7 +62,7 @@ if (process.argv[2] === 'pipe') { stdoutData = true; }); let stderrData = false; - parent.stdout.on('data', function() { + parent.stderr.on('data', function() { stderrData = true; }); @@ -74,17 +74,17 @@ if (process.argv[2] === 'pipe') { child.stdout.pipe(process.stdout, { end: false }); let childSending = false; - let childReciveing = false; + let childReceiving = false; child.on('message', function(message) { if (childSending === false) { childSending = (message === 'message from child'); } - if (childReciveing === false) { - childReciveing = (message === 'got message from master'); + if (childReceiving === false) { + childReceiving = (message === 'got message from master'); } - if (childReciveing === true) { + if (childReceiving === true) { child.kill(); } }); @@ -97,11 +97,11 @@ if (process.argv[2] === 'pipe') { parent.kill(); // Check std(out|err) pipes - assert.ok(!stdoutData, 'The stdout socket was piped to parent'); - assert.ok(!stderrData, 'The stderr socket was piped to parent'); + assert.ok(!stdoutData); + assert.ok(!stderrData); // Check message system - assert.ok(childSending, 'The child was able to send a message'); - assert.ok(childReciveing, 'The child was able to receive a message'); + assert.ok(childSending); + assert.ok(childReceiving); }); }