Skip to content

Commit fd5d73a

Browse files
fix test
1 parent 56a3a65 commit fd5d73a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/test_llmcache.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from pydantic.v1 import ValidationError
88
from redis.exceptions import ConnectionError
99

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

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

0 commit comments

Comments
 (0)