From 9f9bd38aa033960cab174b78789fc5ee060ad297 Mon Sep 17 00:00:00 2001 From: Sushil Tailor Date: Fri, 6 Oct 2017 10:10:18 -0700 Subject: [PATCH] test: replace error msg w/ template literal PR-URL: https://github.com/nodejs/node/pull/15910 Reviewed-By: Daijiro Wachi Reviewed-By: Refael Ackermann Reviewed-By: Ruben Bridgewater --- test/parallel/test-cluster-send-handle-twice.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-cluster-send-handle-twice.js b/test/parallel/test-cluster-send-handle-twice.js index 0d725733faa955..fc0d4a03085aec 100644 --- a/test/parallel/test-cluster-send-handle-twice.js +++ b/test/parallel/test-cluster-send-handle-twice.js @@ -35,8 +35,8 @@ if (cluster.isMaster) { for (let i = 0; i < workers.toStart; ++i) { const worker = cluster.fork(); worker.on('exit', common.mustCall(function(code, signal) { - assert.strictEqual(code, 0, 'Worker exited with an error code'); - assert.strictEqual(signal, null, 'Worker exited by a signal'); + assert.strictEqual(code, 0, `Worker exited with an error code: ${code}`); + assert.strictEqual(signal, null, `Worker exited by a signal: ${signal}`); })); } } else {