Commit 7663404
test: Relax timing assertion in
## Summary
- `test_abort_works` was flaky on CI due to an overly tight timing
assertion (`< 0.3s`), which left only ~0.2s of headroom after the
initial `asyncio.sleep(0.1)`.
- Relaxed the threshold to `5s`, which still validates that `abort()`
cancels tasks promptly (vs the 60s task sleep) while being resilient to
CI scheduling jitter.
## Failed CI runs
-
https://github.com/apify/crawlee-python/actions/runs/22064841619/job/63753881516
-
https://github.com/apify/crawlee-python/actions/runs/22095987878/job/63853075484
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>test_abort_works to fix flaky test (#1754)1 parent 40fdccd commit 7663404
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments