Commit 1f4e3b6
committed
test(authority): keep the crash worker alive until SIGKILL
The restore crash worker awaited a bare promise after its durable boundary.
A pending promise does not hold the event loop, so the child could exit 13
("unfinished top-level await") before the parent delivered SIGKILL, and the
File case then asserted null instead of a signal.
Pin the IPC channel with the same message-listener barrier the task-lease
crash worker uses, assert that SIGKILL was actually delivered, and hold the
parent 250ms past the durable message so the late-signal race stays covered.
Signed-off-by: huangruiteng <14976749+huangruiteng@users.noreply.github.com>1 parent 831ac3b commit 1f4e3b6
2 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | | - | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| |||
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
16 | | - | |
17 | | - | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
0 commit comments