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-03-31 10:14:22 +08:00 committed by GitHub
parent b28aa8e666
commit 403f03cb2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,16 +312,7 @@ async fn error_add_malformed_json_documents() {
// truncate
// length = 100
let long = String::from_utf8(
"0123456789"
.as_bytes()
.iter()
.cycle()
.cloned()
.take(100)
.collect_vec(),
)
.unwrap();
let long = "0123456789".repeat(10);
let document = format!("\"{}\"", long);
let req = test::TestRequest::put()