mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-14 08:46:26 +00:00
Support the auto-generated ids when validating documents
This commit is contained in:
@ -778,7 +778,8 @@ mod tests {
|
||||
let indexing_config = IndexDocumentsConfig::default();
|
||||
let builder =
|
||||
IndexDocuments::new(&mut wtxn, &index, &config, indexing_config, |_| ()).unwrap();
|
||||
assert!(builder.add_documents(content).is_err());
|
||||
let (_builder, user_error) = builder.add_documents(content).unwrap();
|
||||
assert!(user_error.is_err());
|
||||
wtxn.commit().unwrap();
|
||||
|
||||
// Check that there is no document.
|
||||
@ -943,7 +944,8 @@ mod tests {
|
||||
let builder =
|
||||
IndexDocuments::new(&mut wtxn, &index, &config, indexing_config.clone(), |_| ())
|
||||
.unwrap();
|
||||
assert!(builder.add_documents(content).is_err());
|
||||
let (_builder, user_error) = builder.add_documents(content).unwrap();
|
||||
assert!(user_error.is_err());
|
||||
wtxn.commit().unwrap();
|
||||
|
||||
// First we send 1 document with a valid id.
|
||||
|
Reference in New Issue
Block a user