Commit fbeaeec
Fix flaky pause_and_assert helper
When a paused activity catches the cancellation and returns (catch_err=True),
it leaves the pending list before pause_and_assert can observe paused=true,
causing AssertionError after timeout. Treat "no longer pending" as success
since these test activities only stop running due to the cancellation we
triggered.
Also fix a latent bug where check_paused/check_unpaused returned bool to
assert_eventually, which only retries on AssertionError — a False return
would terminate immediately rather than poll until the state was observed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f6e113d commit fbeaeec
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
285 | 290 | | |
286 | 291 | | |
287 | 292 | | |
| |||
300 | 305 | | |
301 | 306 | | |
302 | 307 | | |
303 | | - | |
| 308 | + | |
304 | 309 | | |
305 | | - | |
| 310 | + | |
306 | 311 | | |
307 | 312 | | |
308 | 313 | | |
| |||
0 commit comments