Commit fdd5df0
fix(test): poll for last stderr line in test_stderr_available_on_error
The poll loop broke as soon as the first stderr line ("Debug: worker
starting") appeared, then asserted the second line ("Error: something
went wrong") was also present. The drain thread reads stderr line-by-line,
so on 3.14 Windows the loop could break after line 1 before line 2 was
captured — a pre-existing race the condition papered over. Poll for the
last-written line so both are guaranteed present. Verified 8/8 on Windows
3.14.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 071bfc2 commit fdd5df0
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| |||
0 commit comments