tangled
alpha
login
or
join now
t1c.dev
/
rocksky
forked from
rocksky.app/rocksky
2
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
2
fork
atom
overview
issues
pulls
pipelines
ci: fix tests
tsiry-sandratraina.com
6 months ago
d17c0998
92cf6406
+4
-1
1 changed file
expand all
collapse all
unified
split
crates
tracklist
src
queue.rs
+4
-1
crates/tracklist/src/queue.rs
···
240
240
241
241
#[cfg(test)]
242
242
mod tests {
243
243
+
use std::env;
244
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
249
-
redis::Client::open("redis://localhost:6379/").expect("Failed to create Redis client")
251
251
+
redis::Client::open(env::var("REDIS_URL").unwrap_or("redis://127.0.0.1".into()))
252
252
+
.expect("Failed to create Redis client")
250
253
}
251
254
252
255
async fn cleanup(client: &redis::Client, did: &str) -> Result<(), Error> {