mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01: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
b28aa8e666
commit
403f03cb2c
@ -312,16 +312,7 @@ async fn error_add_malformed_json_documents() {
|
|||||||
// truncate
|
// truncate
|
||||||
|
|
||||||
// length = 100
|
// length = 100
|
||||||
let long = String::from_utf8(
|
let long = "0123456789".repeat(10);
|
||||||
"0123456789"
|
|
||||||
.as_bytes()
|
|
||||||
.iter()
|
|
||||||
.cycle()
|
|
||||||
.cloned()
|
|
||||||
.take(100)
|
|
||||||
.collect_vec(),
|
|
||||||
)
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
let document = format!("\"{}\"", long);
|
let document = format!("\"{}\"", long);
|
||||||
let req = test::TestRequest::put()
|
let req = test::TestRequest::put()
|
||||||
|
Loading…
Reference in New Issue
Block a user