Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/unit/crawlers/_http/test_http_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ async def test_do_not_retry_on_client_errors(crawler: HttpCrawler, server_url: U
assert stats.requests_total == 1


@pytest.mark.flaky(
reruns=3,
reason='Transient transport errors in CI can consume retry budget without registering a status code.',
)
async def test_http_status_statistics(crawler: HttpCrawler, server_url: URL) -> None:
await crawler.add_requests([str(server_url.with_path('status/500').with_query(id=i)) for i in range(10)])
await crawler.add_requests([str(server_url.with_path('status/402').with_query(id=i)) for i in range(10)])
Expand Down
Loading