diff --git a/test/parallel/test-cluster-worker-init.js b/test/parallel/test-cluster-worker-init.js index eaa9746c5f9..4bd43c0ae58 100644 --- a/test/parallel/test-cluster-worker-init.js +++ b/test/parallel/test-cluster-worker-init.js @@ -12,9 +12,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', () => {