Added callers moulde #120

Merged
kdeng00 merged 44 commits from add_queue_endpoint into v0.2 2025-04-22 20:08:24 -04:00
Showing only changes of commit 826ce5ad77 - Show all commits
+5 -2
View File
@@ -251,9 +251,12 @@ mod tests {
// Send request
match app.oneshot(req).await {
Ok(response) => {
let body = axum::body::to_bytes(response.into_body(), usize::MAX).await.unwrap();
let body = axum::body::to_bytes(response.into_body(), usize::MAX)
.await
.unwrap();
println!("Body: {:?}", body);
let resp: crate::callers::song::response::Response = serde_json::from_slice(&body).unwrap();
let resp: crate::callers::song::response::Response =
serde_json::from_slice(&body).unwrap();
assert_eq!(false, resp.data.is_empty(), "Should not be empty");
assert_eq!(false, resp.data[0].is_nil(), "Should not be empty");
}