mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Wait for the add_documents task
Format the code Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
parent
46ff78b4ec
commit
4897ad99d0
2 changed files with 5 additions and 4 deletions
|
@ -130,8 +130,8 @@ async fn search_with_stop_word() {
|
|||
snapshot!(code, @"202 Accepted");
|
||||
|
||||
let documents = DOCUMENTS.clone();
|
||||
index.add_documents(documents, None).await;
|
||||
index.wait_task(1).await;
|
||||
let (task, code) = index.add_documents(documents, None).await;
|
||||
index.wait_task(task.uid()).await.succeeded();
|
||||
|
||||
// prefix search
|
||||
index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue