From ce1e84b94f0e7dcfcf00768a111693c48906e70a Mon Sep 17 00:00:00 2001 From: Barry Tam Date: Fri, 6 Oct 2017 10:54:24 -0700 Subject: [PATCH] replacing assert message with template --- 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();