mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
test: add a missing common.mustCall
PR-URL: https://github.com/nodejs/node/pull/32305 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
9a914ff264
commit
a4dce9ab86
|
|
@ -1,10 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
require('../common');
|
||||
const common = require('../common');
|
||||
const assert = require('assert');
|
||||
const fs = require('fs');
|
||||
|
||||
for (let i = 0; i < 12; i++)
|
||||
fs.open(__filename, 'r', () => {});
|
||||
fs.open(__filename, 'r', common.mustCall());
|
||||
|
||||
assert.strictEqual(process._getActiveRequests().length, 12);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user