tangled
alpha
login
or
join now
rocksky.app
/
rocksky
98
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
rocksky.app
spotify
atproto
lastfm
musicbrainz
scrobbling
listenbrainz
98
fork
atom
overview
issues
7
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
241
#[cfg(test)]
242
mod tests {
0
0
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")
0
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> {