Skip to content

Commit f720b82

Browse files
osukaaBridgeAR
authored andcommitted
test: fix typo
PR-URL: #15938 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 3b90bd0 commit f720b82

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/parallel/test-child-process-silent.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ if (process.argv[2] === 'pipe') {
7474
child.stdout.pipe(process.stdout, { end: false });
7575

7676
let childSending = false;
77-
let childReciveing = false;
77+
let childReceiving = false;
7878
child.on('message', function(message) {
7979
if (childSending === false) {
8080
childSending = (message === 'message from child');
8181
}
8282

83-
if (childReciveing === false) {
84-
childReciveing = (message === 'got message from master');
83+
if (childReceiving === false) {
84+
childReceiving = (message === 'got message from master');
8585
}
8686

87-
if (childReciveing === true) {
87+
if (childReceiving === true) {
8888
child.kill();
8989
}
9090
});
@@ -102,6 +102,6 @@ if (process.argv[2] === 'pipe') {
102102

103103
// Check message system
104104
assert.ok(childSending, 'The child was able to send a message');
105-
assert.ok(childReciveing, 'The child was able to receive a message');
105+
assert.ok(childReceiving, 'The child was able to receive a message');
106106
});
107107
}

0 commit comments

Comments
 (0)