mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 16:24:26 +01:00
Test: await for the deletion task to complete before trying to add another task
This commit is contained in:
parent
1e6cbcaf12
commit
c2f4b6ced0
@ -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
|
// Now we should be able to register tasks again
|
||||||
let (result, code) = server.create_index(json!({ "uid": "doggo" })).await;
|
let (result, code) = server.create_index(json!({ "uid": "doggo" })).await;
|
||||||
snapshot!(code, @"202 Accepted");
|
snapshot!(code, @"202 Accepted");
|
||||||
|
Loading…
Reference in New Issue
Block a user