Repository navigation
Commit 619405d
committed
test(codex): await startup teardown in lifecycle fixtures
Startup validation observes the catalog home through real filesystem I/O.
Advancing the fake clock cannot establish that stdin teardown has started,
so the shared and isolated cleanup checks could race that lookup.
Subscribe to the existing stdin close event before acquisition and await
it while retaining the separate assertion that acquisition stays pending
until the synthetic process exits. Preserve all eight lifecycle variants.
The original 23-file shard reproduced the premature assertion on main.
Validation: 20 standalone runs (132 tests each), three original-shard runs
(864 tests each), scoped lint/format, and independent review passed.
Fixes the fixture introduced in #157229.1 parent 749b11e commit 619405d
1 file changed
Lines changed: 6 additions & 1 deletion
File tree
- extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| 124 | + | |
| 125 | + | |
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
| |||
0 commit comments