mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-03 17:36:29 +00:00 
			
		
		
		
	Fix the indexation tests
This commit is contained in:
		@@ -29,8 +29,7 @@ fn test_facet_distribution_with_no_facet_values() {
 | 
			
		||||
    let config = IndexerConfig { max_memory: Some(10 * 1024 * 1024), ..Default::default() };
 | 
			
		||||
    let indexing_config = IndexDocumentsConfig { autogenerate_docids: true, ..Default::default() };
 | 
			
		||||
 | 
			
		||||
    let mut builder =
 | 
			
		||||
        IndexDocuments::new(&mut wtxn, &index, &config, indexing_config, |_| ()).unwrap();
 | 
			
		||||
    let builder = IndexDocuments::new(&mut wtxn, &index, &config, indexing_config, |_| ()).unwrap();
 | 
			
		||||
    let mut documents_builder = DocumentsBatchBuilder::new(Vec::new());
 | 
			
		||||
    let reader = Cursor::new(
 | 
			
		||||
        r#"{
 | 
			
		||||
@@ -55,7 +54,8 @@ fn test_facet_distribution_with_no_facet_values() {
 | 
			
		||||
 | 
			
		||||
    // index documents
 | 
			
		||||
    let content = DocumentsBatchReader::from_reader(Cursor::new(vector)).unwrap();
 | 
			
		||||
    builder.add_documents(content).unwrap();
 | 
			
		||||
    let (builder, user_error) = builder.add_documents(content).unwrap();
 | 
			
		||||
    user_error.unwrap();
 | 
			
		||||
    builder.execute().unwrap();
 | 
			
		||||
 | 
			
		||||
    wtxn.commit().unwrap();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user