summaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-process-disconnect.js
diff options
context:
space:
mode:
authorjmcgui05 <johnmac81@gmail.com>2017-10-08 19:56:22 -0500
committerRuben Bridgewater <ruben@bridgewater.de>2017-10-09 02:13:18 -0700
commitb2e46c5b5453f26d6db4dd54317da0925f0936b4 (patch)
tree18a1c35c181fc22b44e4a18f6e2246f912ffd4e1 /test/parallel/test-cluster-process-disconnect.js
parent17857d4fc97d03020d3012ed890da509b294d0d2 (diff)
downloadnode-new-b2e46c5b5453f26d6db4dd54317da0925f0936b4.tar.gz
test: assert.strictEqual using template literals
PR-URL: https://github.com/nodejs/node/pull/15944 Reviewed-By: Lance Ball <lball@redhat.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-cluster-process-disconnect.js')
-rw-r--r--test/parallel/test-cluster-process-disconnect.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/parallel/test-cluster-process-disconnect.js b/test/parallel/test-cluster-process-disconnect.js
index 2174d118c3..39690ac968 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');