From 5e7a28a75c2db95b37fc56b938210d4f90e95d9f Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 1 Nov 2026 05:45:19 +0000 Subject: [PATCH] test(redis): select TLS provider in connect test --- litellm-rust/Cargo.lock | 1 + litellm-rust/crates/redis-connect/Cargo.toml | 1 + litellm-rust/crates/redis-connect/tests/connect.rs | 3 +++ 3 files changed, 5 insertions(+) diff --git a/litellm-rust/Cargo.lock b/litellm-rust/Cargo.lock index 15fe18966f3..8e77517f7c0 100644 --- a/litellm-rust/Cargo.lock +++ b/litellm-rust/Cargo.lock @@ -4433,6 +4433,7 @@ dependencies = [ "litellm-redis-client", "litellm-redis-testing", "rstest", + "rustls 0.23.42", "serde_json", "thiserror 2.0.19", "tokio", diff --git a/litellm-rust/crates/redis-connect/Cargo.toml b/litellm-rust/crates/redis-connect/Cargo.toml index 3ec43928b0c..4300c9ea088 100644 --- a/litellm-rust/crates/redis-connect/Cargo.toml +++ b/litellm-rust/crates/redis-connect/Cargo.toml @@ -14,6 +14,7 @@ tracing.workspace = true [dev-dependencies] litellm-redis-testing.workspace = true +rustls.workspace = true serde_json.workspace = true rstest.workspace = true tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } diff --git a/litellm-rust/crates/redis-connect/tests/connect.rs b/litellm-rust/crates/redis-connect/tests/connect.rs index 739dfb62b97..3fe910f5bcb 100644 --- a/litellm-rust/crates/redis-connect/tests/connect.rs +++ b/litellm-rust/crates/redis-connect/tests/connect.rs @@ -26,6 +26,9 @@ fn port(url: &str) -> u16 { #[case::system_roots_only(false, false)] #[tokio::test] async fn python_tls_kwargs_reach_the_server(#[case] with_ca: bool, #[case] connects: bool) { + if rustls::crypto::CryptoProvider::get_default().is_none() { + let _ = rustls::crypto::ring::default_provider().install_default(); + } let server = RedisTlsServer::start(false).await.unwrap(); let kwargs = serde_json::json!({ "host": server.host(),