File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,17 +74,17 @@ if (process.argv[2] === 'pipe') {
74
74
child . stdout . pipe ( process . stdout , { end : false } ) ;
75
75
76
76
let childSending = false ;
77
- let childReciveing = false ;
77
+ let childReceiving = false ;
78
78
child . on ( 'message' , function ( message ) {
79
79
if ( childSending === false ) {
80
80
childSending = ( message === 'message from child' ) ;
81
81
}
82
82
83
- if ( childReciveing === false ) {
84
- childReciveing = ( message === 'got message from master' ) ;
83
+ if ( childReceiving === false ) {
84
+ childReceiving = ( message === 'got message from master' ) ;
85
85
}
86
86
87
- if ( childReciveing === true ) {
87
+ if ( childReceiving === true ) {
88
88
child . kill ( ) ;
89
89
}
90
90
} ) ;
@@ -102,6 +102,6 @@ if (process.argv[2] === 'pipe') {
102
102
103
103
// Check message system
104
104
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' ) ;
106
106
} ) ;
107
107
}
You can’t perform that action at this time.
0 commit comments