From 3b682aa857ad71cd596a4d92b9da5db07f0f8414 Mon Sep 17 00:00:00 2001 From: jmcgui05 Date: Sun, 8 Oct 2017 19:56:22 -0500 Subject: [PATCH] test: assert.strictEqual using template literals PR-URL: https://github.com/nodejs/node/pull/15944 Reviewed-By: Lance Ball Reviewed-By: Ruben Bridgewater --- test/parallel/test-cluster-process-disconnect.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-cluster-process-disconnect.js b/test/parallel/test-cluster-process-disconnect.js index 2174d118c3244a..39690ac9682917 100644 --- a/test/parallel/test-cluster-process-disconnect.js +++ b/test/parallel/test-cluster-process-disconnect.js @@ -6,8 +6,16 @@ const cluster = require('cluster'); if (cluster.isMaster) { const worker = cluster.fork(); worker.on('exit', common.mustCall((code, signal) => { - assert.strictEqual(code, 0, 'worker did not exit normally'); - assert.strictEqual(signal, null, 'worker did not exit normally'); + assert.strictEqual( + code, + 0, + `Worker did not exit normally with code: ${code}` + ); + assert.strictEqual( + signal, + null, + `Worker did not exit normally with signal: ${signal}` + ); })); } else { const net = require('net');