diff --git a/lib/cluster.js b/lib/cluster.js index cdd000b0853..6f003f52120 100644 --- a/lib/cluster.js +++ b/lib/cluster.js @@ -295,7 +295,7 @@ function Worker(customEnv) { } // Internal message: handle message - this.process.on('inernalMessage', function(message, handle) { + this.process.on('internalMessage', function(message, handle) { debug('recived: ', message); // relay to handleMessage diff --git a/test/simple/test-child-process-internal.js b/test/simple/test-child-process-internal.js index 91e90d426bb..dd7ce556b52 100644 --- a/test/simple/test-child-process-internal.js +++ b/test/simple/test-child-process-internal.js @@ -47,7 +47,7 @@ if (process.argv[2] === 'child') { }); var gotInternal; - child.once('inernalMessage', function(data) { + child.once('internalMessage', function(data) { gotInternal = data; });