Skip to content

Commit

Permalink
test: fix typo
Browse files Browse the repository at this point in the history
PR-URL: #15938
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
osukaa authored and MylesBorins committed Nov 28, 2017
1 parent 44c0385 commit 143d8a1
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 @@ -53,17 +53,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 @@ -81,6 +81,6 @@ if (process.argv[2] === 'pipe') {

// Check message system
assert.ok(childSending);
assert.ok(childReciveing);
assert.ok(childReceiving);
});
}

0 comments on commit 143d8a1

Please sign in to comment.