MCPcopy Create free account
hub / github.com/python-arq/arq / test_redis_timeout

Function test_redis_timeout

tests/test_utils.py:30–34  ·  view source on GitHub ↗
(mocker, create_pool)

Source from the content-addressed store, hash-verified

28
29
30async def test_redis_timeout(mocker, create_pool):
31 mocker.spy(arq.utils.asyncio, 'sleep')
32 with pytest.raises(ConnectionError):
33 await create_pool(RedisSettings(port=0, conn_retry_delay=0))
34 assert arq.utils.asyncio.sleep.call_count == 5
35
36
37async def test_redis_timeout_and_retry_many_times(mocker, create_pool):

Callers

nothing calls this directly

Calls 2

RedisSettingsClass · 0.90
create_poolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…