From 27155f845c8992ce7916823638bc51f9b27bfe41 Mon Sep 17 00:00:00 2001 From: Mahmoud Rawas Date: Wed, 8 Jan 2025 15:36:10 +1100 Subject: [PATCH] adding back a missing task wait. --- crates/meilisearch/tests/batches/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/meilisearch/tests/batches/mod.rs b/crates/meilisearch/tests/batches/mod.rs index b551a7b78..165d0667d 100644 --- a/crates/meilisearch/tests/batches/mod.rs +++ b/crates/meilisearch/tests/batches/mod.rs @@ -169,7 +169,8 @@ async fn list_batches_type_filtered() { let index = server.index("test"); let (task, _) = index.create(None).await; 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; assert_eq!(code, 200, "{}", response); assert_eq!(response["results"].as_array().unwrap().len(), 1);