From 6eb88a421652e22a4c8f72c2e1b39e1f7697a4f5 Mon Sep 17 00:00:00 2001 From: Emily Platzer Date: Fri, 6 Oct 2017 10:03:48 -0700 Subject: [PATCH] test: updated error message PR-URL: https://github.com/nodejs/node/pull/15906 Reviewed-By: Daijiro Wachi Reviewed-By: Benjamin Gruenbaum Reviewed-By: Ruben Bridgewater --- test/parallel/test-cluster-send-deadlock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-cluster-send-deadlock.js b/test/parallel/test-cluster-send-deadlock.js index 3b73946b06a982..6d700239223f8f 100644 --- a/test/parallel/test-cluster-send-deadlock.js +++ b/test/parallel/test-cluster-send-deadlock.js @@ -10,8 +10,8 @@ const net = require('net'); if (cluster.isMaster) { const worker = cluster.fork(); worker.on('exit', function(code, signal) { - assert.strictEqual(code, 0, 'Worker exited with an error code'); - assert(!signal, 'Worker exited by a signal'); + assert.strictEqual(code, 0, `Worker exited with an error code: ${code}`); + assert(!signal, `Worker exited by a signal: ${signal}`); server.close(); });