Commit 7d1c947
bgagent
fix(agent): fix race condition in test_server backup terminal write test
The test polls /ping until 503 (set when _background_pipeline_failed
becomes True) then immediately asserts write_terminal was called. But
write_terminal runs after the flag is set in the same except block,
creating a race. Fix by joining background threads before asserting.1 parent 59fa698 commit 7d1c947
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
| |||
0 commit comments