A decentralized music tracking and discovery platform built on AT Protocol 🎵 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz

ci: fix tests

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