add a test reproducing the bug

This commit is contained in:
Tamo 2024-12-30 16:21:06 +01:00
parent ba11121cfc
commit 970a489dcc
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -1220,9 +1220,12 @@ async fn replace_document() {
#[actix_rt::test]
async fn add_no_documents() {
let server = Server::new().await;
let index = server.index("test");
let (_response, code) = index.add_documents(json!([]), None).await;
let index = server.index("kefir");
let (task, code) = index.add_documents(json!([]), None).await;
snapshot!(code, @"202 Accepted");
let task = server.wait_task(task.uid()).await;
let task = task.succeeded();
snapshot!(task, @"");
}
#[actix_rt::test]