From c2f4b6ced09530ec969fec256a864c635a93f760 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 13 Apr 2023 18:22:42 +0200 Subject: [PATCH] Test: await for the deletion task to complete before trying to add another task --- meilisearch/tests/tasks/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meilisearch/tests/tasks/mod.rs b/meilisearch/tests/tasks/mod.rs index b608040da..40093dc41 100644 --- a/meilisearch/tests/tasks/mod.rs +++ b/meilisearch/tests/tasks/mod.rs @@ -1062,6 +1062,9 @@ async fn test_task_queue_is_full() { } "###); + let result = server.wait_task(result["taskUid"].as_u64().unwrap()).await; + snapshot!(json_string!(result["status"]), @r###""succeeded""###); + // Now we should be able to register tasks again let (result, code) = server.create_index(json!({ "uid": "doggo" })).await; snapshot!(code, @"202 Accepted");