mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	Fix the indexation tests
This commit is contained in:
		@@ -127,11 +127,10 @@ fn test_typo_disabled_on_word() {
 | 
			
		||||
    let mut txn = index.write_txn().unwrap();
 | 
			
		||||
    let config = IndexerConfig::default();
 | 
			
		||||
    let indexing_config = IndexDocumentsConfig::default();
 | 
			
		||||
    let mut builder =
 | 
			
		||||
        IndexDocuments::new(&mut txn, &index, &config, indexing_config, |_| ()).unwrap();
 | 
			
		||||
 | 
			
		||||
    builder.add_documents(documents).unwrap();
 | 
			
		||||
    let builder = IndexDocuments::new(&mut txn, &index, &config, indexing_config, |_| ()).unwrap();
 | 
			
		||||
 | 
			
		||||
    let (builder, user_error) = builder.add_documents(documents).unwrap();
 | 
			
		||||
    user_error.unwrap();
 | 
			
		||||
    builder.execute().unwrap();
 | 
			
		||||
    txn.commit().unwrap();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user