Skip to content

Commit c7eac81

Browse files
committed
fixup! test: ensure assertions are reached on more tests
1 parent 3995a07 commit c7eac81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-cluster-message.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ if (cluster.isWorker) {
138138
}));
139139

140140
process.once('exit', function() {
141-
forEach(checks, common.mustCallAtLeast((check, type) => {
141+
for (const [type, check] of Object.entries(checks)) {
142142
assert.ok(check.receive, `The ${type} did not receive any message`);
143143
assert.ok(check.correct, `The ${type} did not get the correct message`);
144-
}));
144+
}
145145
});
146146
}

0 commit comments

Comments
 (0)