split csv and json document routes

This commit is contained in:
mpostma
2021-09-29 00:12:25 +02:00
parent 6e8a3fe8de
commit 911630000f
4 changed files with 49 additions and 48 deletions

View File

@ -152,8 +152,8 @@ async fn document_add_create_index_bad_uid() {
async fn document_update_create_index_bad_uid() {
let server = Server::new().await;
let index = server.index("883 fj!");
let (_response, code) = index.update_documents(json!([]), None).await;
assert_eq!(code, 400);
let (response, code) = index.update_documents(json!([]), None).await;
assert_eq!(code, 400, "{}", response);
}
#[actix_rt::test]