diff --git a/meilisearch/tests/tasks/mod.rs b/meilisearch/tests/tasks/mod.rs index 88f83bb70..723c628bb 100644 --- a/meilisearch/tests/tasks/mod.rs +++ b/meilisearch/tests/tasks/mod.rs @@ -1050,7 +1050,7 @@ async fn test_task_queue_is_full() { "###); // But we should still be able to register tasks deletion IF they delete something - let (result, code) = server.delete_tasks("uids=0").await; + let (result, code) = server.delete_tasks("uids=*").await; snapshot!(code, @"200 OK"); snapshot!(json_string!(result, { ".enqueuedAt" => "[date]", ".taskUid" => "uid" }), @r###" { @@ -1062,6 +1062,19 @@ async fn test_task_queue_is_full() { } "###); + // But we should still be able to register tasks deletion IF they delete something + let (result, code) = server.create_index(json!({ "uid": "doggo" })).await; + snapshot!(code, @"202 Accepted"); + snapshot!(json_string!(result, { ".enqueuedAt" => "[date]", ".taskUid" => "uid" }), @r###" + { + "taskUid": "uid", + "indexUid": "doggo", + "status": "enqueued", + "type": "indexCreation", + "enqueuedAt": "[date]" + } + "###); + // we're going to fill up the queue once again loop { let (res, code) = server.delete_tasks("uids=0").await;