fix broken test

This commit is contained in:
Liu Hancheng 2022-03-04 15:39:18 +08:00
parent b138b92d39
commit a356c8359c

View File

@ -274,7 +274,7 @@ async fn error_add_malformed_json_documents() {
assert_eq!(
response["message"],
json!(
r#"The `json` payload provided is malformed. `Couldn't serialize document value: key must be a string at line 1 column 14`."#
r#"The `json` payload provided is malformed. `Couldn't serialize document value. at line 1 column 14`"#
)
);
assert_eq!(response["code"], json!("malformed_payload"));
@ -298,7 +298,7 @@ async fn error_add_malformed_json_documents() {
assert_eq!(
response["message"],
json!(
r#"The `json` payload provided is malformed. `Couldn't serialize document value: key must be a string at line 1 column 14`."#
r#"The `json` payload provided is malformed. `Couldn't serialize document value. at line 1 column 14`"#
)
);
assert_eq!(response["code"], json!("malformed_payload"));
@ -336,7 +336,7 @@ async fn error_add_malformed_ndjson_documents() {
assert_eq!(
response["message"],
json!(
r#"The `ndjson` payload provided is malformed. `Couldn't serialize document value: key must be a string at line 1 column 2`."#
r#"The `ndjson` payload provided is malformed. `Couldn't serialize document value. at line 1 column 2`"#
)
);
assert_eq!(response["code"], json!("malformed_payload"));
@ -360,7 +360,7 @@ async fn error_add_malformed_ndjson_documents() {
assert_eq!(
response["message"],
json!(
r#"The `ndjson` payload provided is malformed. `Couldn't serialize document value: key must be a string at line 1 column 2`."#
r#"The `ndjson` payload provided is malformed. `Couldn't serialize document value. at line 1 column 2`"#
)
);
assert_eq!(response["code"], json!("malformed_payload"));