Repository navigation
Commit 637b9bc
Make foreground command cancellation testing event-driven
Replace filesystem PID polling, Vitest's one-second wait loop, and the competing command timeout with a stdout readiness promise. The child now stays alive until the test aborts it, so the assertion still proves captured output is preserved without racing process startup under full-suite load.
Validated with 25 repeated focused runs, all 38 command tests, the 6,788-test repository suite, lint, typecheck, production ESM/CJS/declaration builds, and all 23 built-CLI Tuistory scenarios.
Co-authored-by: Autohand Evolve <code-noreply@autohand.ai>1 parent f0ba4b7 commit 637b9bc
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | 174 | | |
176 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
177 | 180 | | |
178 | 181 | | |
179 | 182 | | |
180 | | - | |
181 | 183 | | |
182 | | - | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | | - | |
188 | 189 | | |
189 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | | - | |
194 | | - | |
| 197 | + | |
195 | 198 | | |
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
200 | | - | |
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
| |||
0 commit comments