diff options
author | Stephan Smith <stephan.smith.bc93@gmail.com> | 2017-11-06 15:42:01 +0000 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-11-11 12:50:45 -0800 |
commit | f7436ba1358f6af30d7d9baffdbef8754573f0e5 (patch) | |
tree | c0419e5598aa5f12f3b55fbe2bc5f430997eef09 /test | |
parent | 7b3446e7bb19b2df45892300a13c5bbf30da244c (diff) | |
download | android-node-v8-f7436ba1358f6af30d7d9baffdbef8754573f0e5.tar.gz android-node-v8-f7436ba1358f6af30d7d9baffdbef8754573f0e5.tar.bz2 android-node-v8-f7436ba1358f6af30d7d9baffdbef8754573f0e5.zip |
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 <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-cluster-master-kill.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-cluster-master-kill.js b/test/parallel/test-cluster-master-kill.js index 417ab193c9..4e21d8e906 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})`); }); } |