From a14b447bbbfcded8779d1681a405e824a18589e6 Mon Sep 17 00:00:00 2001 From: Pavel Pomerantsev Date: Fri, 6 Oct 2017 09:50:01 -0700 Subject: [PATCH] test: improve an error message PR-URL: https://github.com/nodejs/node/pull/15921 Reviewed-By: Ruben Bridgewater --- 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 f00dc48b71fad2..417ab193c9bb1f 100644 --- a/test/parallel/test-cluster-master-kill.js +++ b/test/parallel/test-cluster-master-kill.js @@ -79,7 +79,8 @@ if (cluster.isWorker) { })); process.once('exit', () => { - assert.strictEqual(typeof pid, 'number', 'did not get worker pid info'); + assert.strictEqual(typeof pid, 'number', + `got ${pid} instead of a worker pid`); assert.strictEqual(alive, false, 'worker was alive after master died'); });