(self)
| 108 | |
| 109 | @pytest.mark.asyncio |
| 110 | async def test_infinite_retry(self): |
| 111 | backoff = BackoffMock() |
| 112 | # specify infinite retries, but give up after 5 |
| 113 | retry = Retry(backoff, -1) |
| 114 | with pytest.raises(ConnectionError): |
| 115 | await retry.call_with_retry(self._do, self._fail_inf) |
| 116 | |
| 117 | assert self.actual_attempts == 5 |
| 118 | assert self.actual_failures == 5 |
| 119 | |
| 120 | |
| 121 | class TestRedisClientRetry: |
nothing calls this directly
no test coverage detected