mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
#4840 - Partial fix - Confirm task success after waiting for it.
This commit is contained in:
parent
91c7ef8723
commit
bf19f86e38
23 changed files with 79 additions and 79 deletions
|
@ -9,7 +9,7 @@ async fn index_with_documents<'a>(server: &'a Server, documents: &Value) -> Inde
|
|||
let index = server.index("test");
|
||||
|
||||
let(task,_status_code) =index.add_documents(documents.clone(), None).await;
|
||||
index.wait_task(task.uid()).await;
|
||||
index.wait_task(task.uid()).await.succeeded();
|
||||
index
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue