(mocker, create_pool)
| 28 | |
| 29 | |
| 30 | async 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 | |
| 37 | async def test_redis_timeout_and_retry_many_times(mocker, create_pool): |
nothing calls this directly
no test coverage detected
searching dependent graphs…