From 7a5378377fd6aec20bd5bed3b3493705e7fb9ab3 Mon Sep 17 00:00:00 2001 From: Stephan Smith Date: Mon, 6 Nov 2017 15:42:01 +0000 Subject: [PATCH] test: improve template value for test message Include value that cause failure in error message in test-cluster-master-kill.js. PR-URL: https://github.com/nodejs/node/pull/16826 Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Rich Trott --- test/parallel/test-cluster-master-kill.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-cluster-master-kill.js b/test/parallel/test-cluster-master-kill.js index 417ab193c9bb1f..4e21d8e906cfaf 100644 --- a/test/parallel/test-cluster-master-kill.js +++ b/test/parallel/test-cluster-master-kill.js @@ -81,7 +81,8 @@ if (cluster.isWorker) { process.once('exit', () => { assert.strictEqual(typeof pid, 'number', `got ${pid} instead of a worker pid`); - assert.strictEqual(alive, false, 'worker was alive after master died'); + assert.strictEqual(alive, false, + `worker was alive after master died (alive = ${alive})`); }); }