diff --git a/test/parallel/test-cluster-disconnect-race.js b/test/parallel/test-cluster-disconnect-race.js index 60d8697b671b84..9e8b6d41d5c99e 100644 --- a/test/parallel/test-cluster-disconnect-race.js +++ b/test/parallel/test-cluster-disconnect-race.js @@ -24,7 +24,7 @@ if (cluster.isMaster) { })); cluster.on('exit', common.mustCall(function(worker, code) { - assert.strictEqual(code, 0, 'worker exited with error'); + assert.strictEqual(code, 0, `worker exited with error code ${code}`); }, 2)); return;