MCPcopy
hub / github.com/redis/redis-py / _fail_inf

Method _fail_inf

tests/test_asyncio/test_retry.py:91–94  ·  view source on GitHub ↗
(self, error)

Source from the content-addressed store, hash-verified

89 self.actual_failures += 1
90
91 async def _fail_inf(self, error):
92 self.actual_failures += 1
93 if self.actual_failures == 5:
94 raise ConnectionError()
95
96 @pytest.mark.parametrize("retries", range(10))
97 @pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

ConnectionErrorClass · 0.90

Tested by

no test coverage detected