Repository navigation
Commit 2c703b2
serve: test_responses waits for its own sampler thread
NoLeakedSampler counted every "(_loop)" thread in the process, so a
sampler still finishing from an earlier test made it fail now and
then. It now records the threads alive before serve() and checks only
the one its own server started.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 55dd763 commit 2c703b2
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
283 | 285 | | |
284 | | - | |
| 286 | + | |
| 287 | + | |
285 | 288 | | |
286 | 289 | | |
287 | 290 | | |
288 | | - | |
| 291 | + | |
289 | 292 | | |
290 | 293 | | |
291 | | - | |
| 294 | + | |
292 | 295 | | |
293 | 296 | | |
294 | 297 | | |
| |||
0 commit comments