mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-15 15:57:31 +01:00
adding back a missing task wait.
This commit is contained in:
parent
c6f14279d7
commit
27155f845c
@ -169,7 +169,8 @@ async fn list_batches_type_filtered() {
|
|||||||
let index = server.index("test");
|
let index = server.index("test");
|
||||||
let (task, _) = index.create(None).await;
|
let (task, _) = index.create(None).await;
|
||||||
index.wait_task(task.uid()).await.succeeded();
|
index.wait_task(task.uid()).await.succeeded();
|
||||||
let (_task, _) = index.delete().await;
|
let (task, _) = index.delete().await;
|
||||||
|
index.wait_task(task.uid()).await.succeeded();
|
||||||
let (response, code) = index.filtered_batches(&["indexCreation"], &[], &[]).await;
|
let (response, code) = index.filtered_batches(&["indexCreation"], &[], &[]).await;
|
||||||
assert_eq!(code, 200, "{}", response);
|
assert_eq!(code, 200, "{}", response);
|
||||||
assert_eq!(response["results"].as_array().unwrap().len(), 1);
|
assert_eq!(response["results"].as_array().unwrap().len(), 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user