From 60ff9edac714b17fb227414486ba865ed8ac7135 Mon Sep 17 00:00:00 2001 From: Jenna Zeigen Date: Fri, 6 Oct 2017 10:31:18 -0700 Subject: [PATCH] test: update output to include exit code & signal PR-URL: https://github.com/nodejs/node/pull/15945 Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil { const worker2 = cluster.fork(); worker2.on('exit', (code, signal) => { - assert.strictEqual(code, 0, 'worker2 did not exit normally'); - assert.strictEqual(signal, null, 'worker2 did not exit normally'); + assert.strictEqual(code, 0, + 'worker2 did not exit normally. ' + + `exited with code ${code}`); + assert.strictEqual(signal, null, + 'worker2 did not exit normally. ' + + `exited with signal ${signal}`); worker1.disconnect(); }); })); worker1.on('exit', common.mustCall((code, signal) => { - assert.strictEqual(code, 0, 'worker1 did not exit normally'); - assert.strictEqual(signal, null, 'worker1 did not exit normally'); + assert.strictEqual(code, 0, + 'worker1 did not exit normally. ' + + `exited with code ${code}`); + assert.strictEqual(signal, null, + 'worker1 did not exit normally. ' + + `exited with signal ${signal}`); })); } else { const net = require('net');