diff --git a/test/parallel/test-cluster-worker-init.js b/test/parallel/test-cluster-worker-init.js index 0ebe4b772914c3..fd4e43fb863a20 100644 --- a/test/parallel/test-cluster-worker-init.js +++ b/test/parallel/test-cluster-worker-init.js @@ -33,9 +33,9 @@ if (cluster.isMaster) { const worker = cluster.fork(); worker.on('message', common.mustCall((message) => { - assert.strictEqual(message, true, 'did not receive expected message'); + assert.strictEqual(message, true); const w = worker.disconnect(); - assert.strictEqual(worker, w, 'did not return a reference'); + assert.strictEqual(worker, w); })); worker.on('online', () => {