Skip to content

Commit 008eed0

Browse files
committed
fixup! test: ensure assertions are reached on more tests
1 parent 3524b52 commit 008eed0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/parallel/test-diagnostics-channel-module-require.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const events = [];
88
let lastEvent;
99

1010
function track(name) {
11-
return common.mustCall((event) =>{
11+
return common.mustCall((event) => {
1212
// Verify every event after the first is the same object
1313
if (events.length) {
1414
assert.strictEqual(event, lastEvent);

test/parallel/test-worker-arraybuffer-zerofill.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ describe('Allocating uninitialized ArrayBuffers ...', () => {
3030

3131
w.on('online', fn);
3232

33-
const countdown = new Countdown(100, () => {
33+
const countdown = new Countdown(100, common.mustCallAtLeast(() => {
3434
w.terminate();
3535
assert(fn.mock.calls.length > 0);
36-
});
36+
}));
3737

3838
w.on('message', (sum) => {
3939
assert.strictEqual(sum, 0);

test/parallel/test-worker-message-port-transfer-self.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ port2.onmessage = common.mustCall((message) => {
3434

3535
port1.close();
3636

37-
tick(10, () => {
37+
tick(10, common.mustCall(() => {
3838
const inspectedPort1 = util.inspect(port1);
3939
const inspectedPort2 = util.inspect(port2);
4040
assert(inspectedPort1.includes('active: false'), inspectedPort1);
4141
assert(inspectedPort2.includes('active: false'), inspectedPort2);
42-
});
42+
}, 10));
4343
});
4444
port1.postMessage(2);

0 commit comments

Comments
 (0)