Update meilisearch-http/tests/documents/add_documents.rs

Co-authored-by: Clément Renault <renault.cle@gmail.com>
This commit is contained in:
LiuHanCheng 2022-04-01 09:30:32 +08:00 committed by GitHub
parent 7ece7a9d9e
commit eee2cd5abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"],