|
|
c971500 |
diff --git a/tests/test_cache.py b/tests/test_cache.py
|
|
|
c971500 |
index 2e165d4..fa59d37 100644
|
|
|
c971500 |
--- a/tests/test_cache.py
|
|
|
c971500 |
+++ b/tests/test_cache.py
|
|
|
c971500 |
@@ -21,8 +21,6 @@ async def setup_cache(cache_type, cache_opts):
|
|
|
6c16d62 |
("internal", {}, False),
|
|
|
6c16d62 |
("sqlite", {}, True),
|
|
|
6c16d62 |
("sqlite", {}, False),
|
|
|
c971500 |
- ("redis", {"url": "redis://127.0.0.1/0?socket_timeout=5&socket_connect_timeout=5"}, True),
|
|
|
c971500 |
- ("redis", {"url": "redis://127.0.0.1/0?socket_timeout=5&socket_connect_timeout=5"}, False)
|
|
|
6c16d62 |
])
|
|
|
6c16d62 |
@pytest.mark.asyncio
|
|
|
6c16d62 |
async def test_cache_lifecycle(cache_type, cache_opts, safe_set):
|
|
|
c971500 |
@@ -46,7 +44,6 @@ async def test_cache_lifecycle(cache_type, cache_opts, safe_set):
|
|
|
6c16d62 |
@pytest.mark.parametrize("cache_type,cache_opts", [
|
|
|
6c16d62 |
("internal", {}),
|
|
|
6c16d62 |
("sqlite", {}),
|
|
|
c971500 |
- ("redis", {"url": "redis://127.0.0.1/0?socket_timeout=5&socket_connect_timeout=5"}),
|
|
|
6c16d62 |
])
|
|
|
6c16d62 |
@pytest.mark.asyncio
|
|
|
6c16d62 |
async def test_proactive_fetch_ts_lifecycle(cache_type, cache_opts):
|
|
|
c971500 |
@@ -78,12 +75,6 @@ async def test_proactive_fetch_ts_lifecycle(cache_type, cache_opts):
|
|
|
6c16d62 |
("sqlite", {}, 3, 4),
|
|
|
6c16d62 |
("sqlite", {}, 0, 4),
|
|
|
6c16d62 |
("sqlite", {}, constants.DOMAIN_QUEUE_LIMIT*2, constants.DOMAIN_QUEUE_LIMIT),
|
|
|
c971500 |
- ("redis", {"url": "redis://127.0.0.1/0?socket_timeout=5&socket_connect_timeout=5"}, 3, 1),
|
|
|
c971500 |
- ("redis", {"url": "redis://127.0.0.1/0?socket_timeout=5&socket_connect_timeout=5"}, 3, 2),
|
|
|
c971500 |
- ("redis", {"url": "redis://127.0.0.1/0?socket_timeout=5&socket_connect_timeout=5"}, 3, 3),
|
|
|
c971500 |
- ("redis", {"url": "redis://127.0.0.1/0?socket_timeout=5&socket_connect_timeout=5"}, 3, 4),
|
|
|
c971500 |
- ("redis", {"url": "redis://127.0.0.1/0?socket_timeout=5&socket_connect_timeout=5"}, 0, 4),
|
|
|
c971500 |
- ("redis", {"url": "redis://127.0.0.1/0?socket_timeout=5&socket_connect_timeout=5"}, constants.DOMAIN_QUEUE_LIMIT*2, constants.DOMAIN_QUEUE_LIMIT),
|
|
|
6c16d62 |
])
|
|
|
6c16d62 |
@pytest.mark.timeout(10)
|
|
|
6c16d62 |
@pytest.mark.asyncio
|