Skip to content

Commit f425312

Browse files
committed
fixup! test: ensure assertions are reachable in test/addons
1 parent ad5d0ad commit f425312

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/addons/async-resource/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async_hooks.createHook({
2626
assert.strictEqual(triggerAsyncId, expectedTriggerId);
2727
bindingUids.push(id);
2828
}
29-
}),
29+
}, 7),
3030

3131
before(id) {
3232
if (bindingUids.includes(id)) before++;

test/addons/symlinked-module/submodule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ module.exports.test = common.mustCall(function test(bindingDir) {
1010
const mod = require(path.join(bindingDir, 'binding.node'));
1111
assert.notStrictEqual(mod, null);
1212
assert.strictEqual(mod.hello(), 'world');
13-
});
13+
}, require.main === module ? 0 : 2);

0 commit comments

Comments
 (0)