test: improve statwatcher async_hooks test · nodejs/node@dea3ac7 · GitHub
Skip to content

Commit dea3ac7

Browse files
addaleaxtargos
authored andcommitted
test: improve statwatcher async_hooks test
Modify the `fs.watchFile()` async hooks test to be more accurate; currently, it relies on undocumented methods and the fact that they use `MakeCallback()` even though there is always a JS stack below. PR-URL: #21244 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 169bff3 commit dea3ac7

1 file changed

Lines changed: 33 additions & 15 deletions

File tree

test/async-hooks/test-statwatcher.js

Lines changed: 33 additions & 15 deletions

0 commit comments

Comments
 (0)