From 1beda3b9afabe16c15b7b98c9b902e52cc94ac58 Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 28 Jan 2025 16:02:14 +0100 Subject: [PATCH] fix another flaky test --- crates/meilisearch/tests/batches/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/meilisearch/tests/batches/mod.rs b/crates/meilisearch/tests/batches/mod.rs index 327e2cd64..6ef40be8e 100644 --- a/crates/meilisearch/tests/batches/mod.rs +++ b/crates/meilisearch/tests/batches/mod.rs @@ -41,9 +41,8 @@ async fn list_batches() { let index = server.index("test"); let (task, _status_code) = index.create(None).await; index.wait_task(task.uid()).await.succeeded(); - index - .add_documents(serde_json::from_str(include_str!("../assets/test_set.json")).unwrap(), None) - .await; + let (task, _status_code) = index.create(None).await; + index.wait_task(task.uid()).await.failed(); let (response, code) = index.list_batches().await; assert_eq!(code, 200); assert_eq!(