mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-08 12:34:30 +01:00
add a test reproducing the bug
This commit is contained in:
parent
ba11121cfc
commit
970a489dcc
@ -1220,9 +1220,12 @@ async fn replace_document() {
|
|||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
async fn add_no_documents() {
|
async fn add_no_documents() {
|
||||||
let server = Server::new().await;
|
let server = Server::new().await;
|
||||||
let index = server.index("test");
|
let index = server.index("kefir");
|
||||||
let (_response, code) = index.add_documents(json!([]), None).await;
|
let (task, code) = index.add_documents(json!([]), None).await;
|
||||||
snapshot!(code, @"202 Accepted");
|
snapshot!(code, @"202 Accepted");
|
||||||
|
let task = server.wait_task(task.uid()).await;
|
||||||
|
let task = task.succeeded();
|
||||||
|
snapshot!(task, @"");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user