From 46f4597208bbb30507e896739948d7f5e08034c9 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 60700ab1f5733c..98ed0d22aa9cfd 100644 --- a/test/parallel/test-cluster-master-kill.js +++ b/test/parallel/test-cluster-master-kill.js @@ -58,7 +58,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'); });