A decentralized music tracking and discovery platform built on AT Protocol 🎵

ci: fix tests

+4 -1
+4 -1
crates/tracklist/src/queue.rs
··· 240 240 241 241 #[cfg(test)] 242 242 mod tests { 243 + use std::env; 244 + 243 245 use super::*; 244 246 use anyhow::Error; 245 247 use redis::AsyncCommands; 246 248 use uuid::Uuid; 247 249 248 250 async fn setup_redis() -> redis::Client { 249 - redis::Client::open("redis://localhost:6379/").expect("Failed to create Redis client") 251 + redis::Client::open(env::var("REDIS_URL").unwrap_or("redis://127.0.0.1".into())) 252 + .expect("Failed to create Redis client") 250 253 } 251 254 252 255 async fn cleanup(client: &redis::Client, did: &str) -> Result<(), Error> {