From 970a489dcc31c23d70478b8a595b41e2aeadd3a2 Mon Sep 17 00:00:00 2001 From: Tamo Date: Mon, 30 Dec 2024 16:21:06 +0100 Subject: [PATCH] add a test reproducing the bug --- crates/meilisearch/tests/documents/add_documents.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/meilisearch/tests/documents/add_documents.rs b/crates/meilisearch/tests/documents/add_documents.rs index d72b1a7a8..d164d9a27 100644 --- a/crates/meilisearch/tests/documents/add_documents.rs +++ b/crates/meilisearch/tests/documents/add_documents.rs @@ -1220,9 +1220,12 @@ async fn replace_document() { #[actix_rt::test] async fn add_no_documents() { let server = Server::new().await; - let index = server.index("test"); - let (_response, code) = index.add_documents(json!([]), None).await; + let index = server.index("kefir"); + let (task, code) = index.add_documents(json!([]), None).await; snapshot!(code, @"202 Accepted"); + let task = server.wait_task(task.uid()).await; + let task = task.succeeded(); + snapshot!(task, @""); } #[actix_rt::test]