diff options
Diffstat (limited to 'test/parallel')
-rw-r--r-- | test/parallel/test-cluster-message.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-cluster-message.js b/test/parallel/test-cluster-message.js index 427c305890..7b074b9034 100644 --- a/test/parallel/test-cluster-message.js +++ b/test/parallel/test-cluster-message.js @@ -84,7 +84,8 @@ else if (cluster.isMaster) { worker.on('message', function(message) { check('master', message === 'message from worker'); }); - cluster.on('message', function(message) { + cluster.on('message', function(worker_, message) { + assert.strictEqual(worker_, worker); check('global', message === 'message from worker'); }); |