mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
improve the count of the number of tasks in a batch
This commit is contained in:
parent
71807cac6d
commit
1e694ae432
2 changed files with 8 additions and 3 deletions
|
@ -46,7 +46,12 @@ async fn list_batches() {
|
|||
.await;
|
||||
let (response, code) = index.list_batches().await;
|
||||
assert_eq!(code, 200);
|
||||
assert_eq!(response["results"].as_array().unwrap().len(), 2);
|
||||
assert_eq!(
|
||||
response["results"].as_array().unwrap().len(),
|
||||
2,
|
||||
"{}",
|
||||
serde_json::to_string_pretty(&response).unwrap()
|
||||
);
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue