Commit e2d7069
authored
test: Increase sleep tolerance in request_max_duration test for Windows CI (#1827)
## Summary
- Increase `asyncio.sleep` from 50ms to 200ms and tolerance from 15ms to
50ms in `test_request_max_duration_tracks_maximum` to fix flaky failures
on Windows CI where timer resolution is ~15ms.
## Context
- [Failed
run](https://github.com/apify/crawlee-python/actions/runs/23786266607/job/69310149225?pr=1823)
— `asyncio.sleep(0.05)` only slept ~34ms on Windows, falling below the
`0.035s` threshold.1 parent 41c21b7 commit e2d7069
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments