mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
#4840 - Partial fix - Confirm task success after waiting for it - continued, few missing cases.
This commit is contained in:
parent
bf19f86e38
commit
15062e7dba
16 changed files with 91 additions and 91 deletions
|
@ -7,7 +7,7 @@ async fn set_and_reset_distinct_attribute() {
|
|||
let index = server.index("test");
|
||||
|
||||
let (task1, _code) = index.update_settings(json!({ "distinctAttribute": "test"})).await;
|
||||
index.wait_task(task1.uid()).await;
|
||||
index.wait_task(task1.uid()).await.succeeded();
|
||||
|
||||
let (response, _) = index.settings().await;
|
||||
|
||||
|
@ -15,7 +15,7 @@ async fn set_and_reset_distinct_attribute() {
|
|||
|
||||
let (task2,_status_code) = index.update_settings(json!({ "distinctAttribute": null })).await;
|
||||
|
||||
index.wait_task(task2.uid()).await;
|
||||
index.wait_task(task2.uid()).await.succeeded();
|
||||
|
||||
let (response, _) = index.settings().await;
|
||||
|
||||
|
@ -28,7 +28,7 @@ async fn set_and_reset_distinct_attribute_with_dedicated_route() {
|
|||
let index = server.index("test");
|
||||
|
||||
let (update_task1, _code) = index.update_distinct_attribute(json!("test")).await;
|
||||
index.wait_task(update_task1.uid()).await;
|
||||
index.wait_task(update_task1.uid()).await.succeeded();
|
||||
|
||||
let (response, _) = index.get_distinct_attribute().await;
|
||||
|
||||
|
@ -36,7 +36,7 @@ async fn set_and_reset_distinct_attribute_with_dedicated_route() {
|
|||
|
||||
let (update_task2,_status_code) = index.update_distinct_attribute(json!(null)).await;
|
||||
|
||||
index.wait_task(update_task2.uid()).await;
|
||||
index.wait_task(update_task2.uid()).await.succeeded();
|
||||
|
||||
let (response, _) = index.get_distinct_attribute().await;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue