Skip to content

Commit 4db976a

Browse files
jasnellavivkeller
andauthored
Apply suggestions from code review
Co-authored-by: Aviv Keller <[email protected]>
1 parent a1fc6ae commit 4db976a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
'use strict';
22
require('../common');
33
const Countdown = require('../common/countdown');
4-
const assert = require('assert');
54
const { Worker } = require('worker_threads');
65
const { describe, it, mock } = require('node:test');
76

87
describe('Allocating uninitialized ArrayBuffers ...', () => {
9-
it('...should not affect zero-fill in other threads', () => {
8+
it('...should not affect zero-fill in other threads', (t) => {
109
const w = new Worker(`
1110
const { parentPort } = require('worker_threads');
1211
@@ -32,11 +31,11 @@ describe('Allocating uninitialized ArrayBuffers ...', () => {
3231

3332
const countdown = new Countdown(100, () => {
3433
w.terminate();
35-
assert(fn.mock.calls.length > 0);
34+
t.assert.ok(fn.mock.calls.length > 0);
3635
});
3736

3837
w.on('message', (sum) => {
39-
assert.strictEqual(sum, 0);
38+
t.assert.strictEqual(sum, 0);
4039
if (countdown.remaining) countdown.dec();
4140
});
4241
});

0 commit comments

Comments
 (0)