mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
add tests for the task deletion and task cancelation
This commit is contained in:
parent
a85d5b4981
commit
033794d209
2 changed files with 42 additions and 13 deletions
|
@ -156,6 +156,10 @@ impl Server {
|
|||
.await
|
||||
}
|
||||
|
||||
pub async fn delete_task(&self, value: Value) -> (Value, StatusCode) {
|
||||
self.service.delete(format!("/tasks?{}", yaup::to_string(&value).unwrap())).await
|
||||
}
|
||||
|
||||
pub async fn wait_task(&self, update_id: u64) -> Value {
|
||||
// try several times to get status, or panic to not wait forever
|
||||
let url = format!("/tasks/{}", update_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue