Repository navigation
Commit 3022308
test(node): Await the child exit in the "should exit" integration tests
The thread-blocked-native tests waited a fixed 5 seconds and then checked
that the child process had exited. Under load in CI the child sometimes
needs longer, so the test failed. The ANR tests polled every 100 ms.
The runner now has `exited()`, which resolves on the child's `close`
event. Both suites await it, and the describe timeout still fails a child
that never exits. `childHasExited()` had no other users and is removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 8663f7c commit 3022308
3 files changed
Lines changed: 10 additions & 34 deletions
File tree
- dev-packages/node-integration-tests
- suites
- anr
- thread-blocked-native
- utils/runner
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 5 | | |
17 | 6 | | |
18 | 7 | | |
| |||
187 | 176 | | |
188 | 177 | | |
189 | 178 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 179 | + | |
195 | 180 | | |
196 | 181 | | |
197 | 182 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 183 | + | |
203 | 184 | | |
204 | 185 | | |
205 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 165 | + | |
170 | 166 | | |
171 | 167 | | |
172 | 168 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 169 | + | |
178 | 170 | | |
179 | 171 | | |
180 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
| 384 | + | |
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
| |||
666 | 668 | | |
667 | 669 | | |
668 | 670 | | |
| 671 | + | |
669 | 672 | | |
670 | 673 | | |
671 | 674 | | |
| |||
759 | 762 | | |
760 | 763 | | |
761 | 764 | | |
762 | | - | |
763 | | - | |
| 765 | + | |
| 766 | + | |
764 | 767 | | |
765 | 768 | | |
766 | 769 | | |
| |||
0 commit comments