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 committed 2026-01-19 19:18:57 +01:00
1 parent 2592d94e29
commit 0f05221aec
78 files changed
+327 -301

No files matched your search

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