A lower connect timeout than the total is honored
(self)
| 44 | assert e.value.reason == error |
| 45 | |
| 46 | def test_retry_higher_total_loses(self) -> None: |
| 47 | """A lower connect timeout than the total is honored""" |
| 48 | error = ConnectTimeoutError() |
| 49 | retry = Retry(connect=2, total=3) |
| 50 | retry = retry.increment(error=error) |
| 51 | retry = retry.increment(error=error) |
| 52 | with pytest.raises(MaxRetryError): |
| 53 | retry.increment(error=error) |
| 54 | |
| 55 | def test_retry_higher_total_loses_vs_read(self) -> None: |
| 56 | """A lower read timeout than the total is honored""" |
nothing calls this directly
no test coverage detected