From d17c0998932e39de5a3a3b237c01b45754a84aa9 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sun, 7 Sep 2025 21:08:34 +0300 Subject: [PATCH] ci: fix tests --- crates/tracklist/src/queue.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/tracklist/src/queue.rs b/crates/tracklist/src/queue.rs index 9480d49a..6091d2af 100644 --- a/crates/tracklist/src/queue.rs +++ b/crates/tracklist/src/queue.rs @@ -240,13 +240,16 @@ pub async fn insert_tracks_at( #[cfg(test)] mod tests { + use std::env; + use super::*; use anyhow::Error; use redis::AsyncCommands; use uuid::Uuid; async fn setup_redis() -> redis::Client { - redis::Client::open("redis://localhost:6379/").expect("Failed to create Redis client") + redis::Client::open(env::var("REDIS_URL").unwrap_or("redis://127.0.0.1".into())) + .expect("Failed to create Redis client") } async fn cleanup(client: &redis::Client, did: &str) -> Result<(), Error> { -- 2.51.2