Commit 9ba8495
committed
fix: wait for child stdio close before resolving exec
Resolve on `cp.on("close", ...)` instead of `cp.on("exit", ...)`. `exit` fires before stdio streams flush, so the `appendFileSync` calls in the data handler may not have written the last lines to the log file yet — leading to flaky failures where the post-FAIL summary block reads an incomplete log (seen on PR #1854 CI run).1 parent 7b89438 commit 9ba8495
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
1168 | | - | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
1169 | 1171 | | |
1170 | 1172 | | |
1171 | 1173 | | |
| |||
0 commit comments