Fix the indexation tests

This commit is contained in:
Kerollmops 2022-06-15 14:35:19 +02:00
parent fcfc4caf8c
commit 399eec5c01
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
15 changed files with 288 additions and 194 deletions

View file

@ -100,9 +100,10 @@ mod tests {
]);
let indexing_config = IndexDocumentsConfig::default();
let config = IndexerConfig::default();
let mut builder =
let builder =
IndexDocuments::new(&mut wtxn, &index, &config, indexing_config, |_| ()).unwrap();
builder.add_documents(content).unwrap();
let (builder, user_error) = builder.add_documents(content).unwrap();
user_error.unwrap();
builder.execute().unwrap();
// Clear all documents from the database.