Test: await for the deletion task to complete before trying to add another task

This commit is contained in:
Louis Dureuil 2023-04-13 18:22:42 +02:00
parent 1e6cbcaf12
commit c2f4b6ced0
No known key found for this signature in database

View File

@ -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");