From 7a30d98264971805369a634ea2712cd9c1038ad5 Mon Sep 17 00:00:00 2001 From: Tamo Date: Wed, 11 Jan 2023 14:54:29 +0100 Subject: [PATCH] fix a flaky test --- meilisearch/tests/search/errors.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meilisearch/tests/search/errors.rs b/meilisearch/tests/search/errors.rs index 60a52d07d..bf05dc916 100644 --- a/meilisearch/tests/search/errors.rs +++ b/meilisearch/tests/search/errors.rs @@ -240,6 +240,8 @@ async fn search_bad_filter() { // Also, to trigger the error message we need to effectively create the index or else it'll throw an // index does not exists error. let (_, code) = index.create(None).await; + server.wait_task(0).await; + snapshot!(code, @"202 Accepted"); let (response, code) = index.search_post(json!({ "filter": true })).await;