File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 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') {
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}
You can’t perform that action at this time.
0 commit comments