Got another test working
This commit is contained in:
+1
-14
@@ -889,15 +889,7 @@ mod tests {
|
|||||||
get_resp_data::<crate::callers::song::response::Response>(response).await;
|
get_resp_data::<crate::callers::song::response::Response>(response).await;
|
||||||
assert_eq!(false, resp.data.is_empty(), "Should not be empty");
|
assert_eq!(false, resp.data.is_empty(), "Should not be empty");
|
||||||
assert_eq!(false, resp.data[0].is_nil(), "Should not be empty");
|
assert_eq!(false, resp.data[0].is_nil(), "Should not be empty");
|
||||||
|
let id = resp.data[0];
|
||||||
match fetch_queue_req(&app).await {
|
|
||||||
Ok(response) => {
|
|
||||||
let resp = get_resp_data::<
|
|
||||||
crate::callers::song::response::fetch_queue_song::Response,
|
|
||||||
>(response)
|
|
||||||
.await;
|
|
||||||
assert_eq!(false, resp.data.is_empty(), "Should not be empty");
|
|
||||||
let id = resp.data[0].id;
|
|
||||||
|
|
||||||
match fetch_queue_data_req(&app, &id).await {
|
match fetch_queue_data_req(&app, &id).await {
|
||||||
Ok(response) => match resp_to_bytes(response).await {
|
Ok(response) => match resp_to_bytes(response).await {
|
||||||
@@ -920,11 +912,6 @@ mod tests {
|
|||||||
Err(err) => {
|
Err(err) => {
|
||||||
assert!(false, "Error: {:?}", err);
|
assert!(false, "Error: {:?}", err);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
Err(err) => {
|
|
||||||
assert!(false, "Error: {:?}", err);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let _ = db_mgr::drop_database(&tm_pool, &db_name).await;
|
let _ = db_mgr::drop_database(&tm_pool, &db_name).await;
|
||||||
|
|||||||
Reference in New Issue
Block a user