Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Commit

Permalink
test: fix typo
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#15938
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
osukaa authored and addaleax committed Oct 26, 2017
1 parent 32a05d3 commit 3a95a90
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-child-process-silent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
Expand All @@ -102,6 +102,6 @@ if (process.argv[2] === 'pipe') {

// 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(childReceiving, 'The child was able to receive a message');
});
}

0 comments on commit 3a95a90

Please sign in to comment.