From ab046beeeb412389f3cc680c186a58b28dfd7eca Mon Sep 17 00:00:00 2001 From: Barry Tam Date: Fri, 6 Oct 2017 10:54:24 -0700 Subject: [PATCH] test: replacing assert message with template PR-URL: https://github.com/nodejs/node/pull/15974 Reviewed-By: Ruben Bridgewater --- test/parallel/test-cluster-disconnect-suicide-race.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-cluster-disconnect-suicide-race.js b/test/parallel/test-cluster-disconnect-suicide-race.js index 15d07002252ee9..b65af6453e3f61 100644 --- a/test/parallel/test-cluster-disconnect-suicide-race.js +++ b/test/parallel/test-cluster-disconnect-suicide-race.js @@ -8,7 +8,7 @@ const cluster = require('cluster'); if (cluster.isMaster) { cluster.on('exit', (worker, code) => { - assert.strictEqual(code, 0, 'worker exited with error'); + assert.strictEqual(code, 0, `worker exited with code: ${code}, expected 0`); }); return cluster.fork();