Skip to content

Commit ce6d811

Browse files
committed
fix for lower db version
1 parent e176878 commit ce6d811

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/test_threshold_optimizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def test_optimize_threshold_cache_default(redis_url):
195195
distance_threshold=null_threshold,
196196
)
197197

198-
redis_version = cache.client.info()["redis_version"]
198+
redis_version = cache._index.client.info()["redis_version"]
199199
if not compare_versions(redis_version, "7.0.0"):
200200
pytest.skip("Not using a late enough version of Redis")
201201

@@ -223,7 +223,7 @@ def test_optimize_threshold_cache_precision(redis_url):
223223
distance_threshold=null_threshold,
224224
)
225225

226-
redis_version = cache.client.info()["redis_version"]
226+
redis_version = cache._index.client.info()["redis_version"]
227227
if not compare_versions(redis_version, "7.0.0"):
228228
pytest.skip("Not using a late enough version of Redis")
229229

@@ -251,7 +251,7 @@ def test_optimize_threshold_cache_recall(redis_url):
251251
distance_threshold=null_threshold,
252252
)
253253

254-
redis_version = cache.client.info()["redis_version"]
254+
redis_version = cache._index.client.info()["redis_version"]
255255
if not compare_versions(redis_version, "7.0.0"):
256256
pytest.skip("Not using a late enough version of Redis")
257257

0 commit comments

Comments
 (0)