Skip to content

Commit fe07a58

Browse files
jmcgui05MylesBorins
authored andcommittedOct 18, 2017
test: assert.strictEqual using template literals
PR-URL: #15944 Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 7c4351e commit fe07a58

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
 

‎test/parallel/test-cluster-process-disconnect.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@ const cluster = require('cluster');
66
if (cluster.isMaster) {
77
const worker = cluster.fork();
88
worker.on('exit', common.mustCall((code, signal) => {
9-
assert.strictEqual(code, 0, 'worker did not exit normally');
10-
assert.strictEqual(signal, null, 'worker did not exit normally');
9+
assert.strictEqual(
10+
code,
11+
0,
12+
`Worker did not exit normally with code: ${code}`
13+
);
14+
assert.strictEqual(
15+
signal,
16+
null,
17+
`Worker did not exit normally with signal: ${signal}`
18+
);
1119
}));
1220
} else {
1321
const net = require('net');

0 commit comments

Comments
 (0)