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
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:
@@ -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:
|
def test_request_retries_on_transient(monkeypatch, sample_payload: Dict[str, object]) -> None:
|
||||||
|
from aitbc import NetworkError
|
||||||
responses: List[object] = [
|
responses: List[object] = [
|
||||||
httpx.ReadTimeout("timeout"),
|
NetworkError("timeout"),
|
||||||
_DummyResponse(429, {}),
|
_DummyResponse(429, {}),
|
||||||
_DummyResponse(200, {}),
|
_DummyResponse(200, {}),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user