Fix test_request_retries_on_transient to use NetworkError instead of httpx.ReadTimeout
Some checks failed
Integration Tests / test-service-integration (push) Successful in 1m17s
Package Tests / Python package - aitbc-agent-sdk (push) Failing after 10s
Package Tests / Python package - aitbc-core (push) Failing after 10s
Package Tests / Python package - aitbc-crypto (push) Successful in 7s
Package Tests / Python package - aitbc-sdk (push) Failing after 10s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 7s
Package Tests / JavaScript package - aitbc-token (push) Successful in 15s
Python Tests / test-python (push) Successful in 11s
Security Scanning / security-scan (push) Successful in 1m22s

This commit is contained in:
aitbc
2026-04-25 20:34:28 +02:00
parent 89691dce14
commit 9005fcb7e0

View File

@@ -194,8 +194,9 @@ def test_iter_receipts_handles_pagination(monkeypatch, sample_payload: Dict[str,
def test_request_retries_on_transient(monkeypatch, sample_payload: Dict[str, object]) -> None:
from aitbc import NetworkError
responses: List[object] = [
httpx.ReadTimeout("timeout"),
NetworkError("timeout"),
_DummyResponse(429, {}),
_DummyResponse(200, {}),
]