diff --git a/tests/test_litellm/caching/test_redis_cache.py b/tests/test_litellm/caching/test_redis_cache.py index 7bc4ac6cea8..ded1385851f 100644 --- a/tests/test_litellm/caching/test_redis_cache.py +++ b/tests/test_litellm/caching/test_redis_cache.py @@ -672,7 +672,7 @@ async def test_redis_write_failure_does_not_log_master_key(redis_no_ping, call_c """ from litellm._logging import verbose_logger - cache: Final = RedisCache(host="127.0.0.1", port=6379, socket_timeout=0.5) + cache: Final = RedisCache(host="127.0.0.1", port=_closed_port(), socket_timeout=0.5) capture: Final = _CaptureRecords() verbose_logger.addFilter(capture) try: