Skip to content

Commit 62c6e57

Browse files
fix test
1 parent 9f32c5e commit 62c6e57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/test_llmcache.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from pydantic.v1 import ValidationError
77
from redis.exceptions import ConnectionError
88

9+
from redisvl.exceptions import RedisModuleVersionError
910
from redisvl.extensions.llmcache import SemanticCache
1011
from redisvl.index.index import AsyncSearchIndex, SearchIndex
1112
from redisvl.query.filter import Num, Tag, Text
@@ -781,7 +782,8 @@ def test_index_updating(redis_url):
781782
)
782783
assert response == []
783784

784-
with pytest.raises(ValueError):
785+
with pytest.raises((RedisModuleVersionError, ValueError)):
786+
785787
cache_with_tags = SemanticCache(
786788
name="test_cache",
787789
redis_url=redis_url,

0 commit comments

Comments
 (0)