Commit dea3ac7
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 dea3ac7Copy full SHA for dea3ac7
File tree
Expand file treeCollapse file tree
1 file changed
+33
-15
lines changedOpen diff view settings
Filter options
- test/async-hooks
Expand file treeCollapse file tree
1 file changed
+33
-15
lines changedOpen diff view settings
Collapse file
test/async-hooks/test-statwatcher.js
Copy file name to clipboardExpand all lines: test/async-hooks/test-statwatcher.js+33-15Lines changed: 33 additions & 15 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | 11 | |
11 | 12 | |
12 | 13 | |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
13 | 21 | |
14 | 22 | |
15 | 23 | |
16 | 24 | |
17 | 25 | |
18 | | - |
| 26 | + |
19 | 27 | |
20 | 28 | |
21 | 29 | |
| ||
28 | 36 | |
29 | 37 | |
30 | 38 | |
31 | | - |
| 39 | + |
32 | 40 | |
33 | 41 | |
34 | 42 | |
| ||
41 | 49 | |
42 | 50 | |
43 | 51 | |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
50 | 60 | |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
57 | 75 | |
58 | 76 | |
59 | 77 | |
|
0 commit comments