mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
Update meilisearch-http/tests/documents/add_documents.rs
Co-authored-by: Clément Renault <renault.cle@gmail.com>
This commit is contained in:
parent
7ece7a9d9e
commit
eee2cd5abf
@ -321,9 +321,7 @@ async fn error_add_malformed_json_documents() {
|
|||||||
.to_request();
|
.to_request();
|
||||||
let res = test::call_service(&app, req).await;
|
let res = test::call_service(&app, req).await;
|
||||||
let body = test::read_body(res).await;
|
let body = test::read_body(res).await;
|
||||||
dbg!(&body);
|
|
||||||
let response: Value = serde_json::from_slice(&body).unwrap_or_default();
|
let response: Value = serde_json::from_slice(&body).unwrap_or_default();
|
||||||
dbg!(&response);
|
|
||||||
assert_eq!(status_code, 400);
|
assert_eq!(status_code, 400);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
response["message"],
|
response["message"],
|
||||||
|
Loading…
Reference in New Issue
Block a user