test: changes to use template literal

PR-URL: https://github.com/nodejs/node/pull/15937
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
joanne-jjb 2017-10-06 10:30:42 -07:00 committed by Ruben Bridgewater
parent dd1592020b
commit 31ab2ebbde
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -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;