Commit e40eee5
committed
fix: wait for the stdout-filter thread in test_def_via_stdout_fails_session_action_on_error
The test asserted the parse-error log message immediately after
observing the session leave RUNNING, but the message is emitted by the
subprocess stdout-filter thread, which can still be draining the pipe
at that point. The race is intermittent on Windows CI (observed
repeatedly on python 3.9/3.14 windows-latest runners), where it fails
with the message absent from caplog and then passes on re-run. Poll
briefly for the message instead of racing the thread.
Signed-off-by: andychoquette <78888816+andychoquette@users.noreply.github.com>1 parent ea87e9c commit e40eee5
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3027 | 3027 | | |
3028 | 3028 | | |
3029 | 3029 | | |
3030 | | - | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
3031 | 3034 | | |
3032 | | - | |
3033 | 3035 | | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
3034 | 3040 | | |
3035 | 3041 | | |
3036 | 3042 | | |
| |||
0 commit comments