test: ensure assertions are reached on more tests

PR-URL: https://github.com/nodejs/node/pull/60641
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
Antoine du Hamel authored and GitHub committed 2025-11-11 09:56:18 +00:00
1 parent 57b4a315ce
commit f1f6f3df84
78 files changed
+324 -297

No files matched your search

@@ -34,6 +34,6 @@ async_hooks.createHook({
}),
}).enable();
runInCallbackScope(expectedResource, expectedResourceType, () => {
runInCallbackScope(expectedResource, expectedResourceType, common.mustCall(() => {
assert(insideHook);
});
}));