From 25faef67d052d52eeb9d1ef4844238df162a01fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Thu, 9 Dec 2021 11:15:16 +0100 Subject: [PATCH] Remove the database setup in the filter_depth test --- milli/src/search/facet/filter.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/milli/src/search/facet/filter.rs b/milli/src/search/facet/filter.rs index 642a32472..6ece17eb4 100644 --- a/milli/src/search/facet/filter.rs +++ b/milli/src/search/facet/filter.rs @@ -614,19 +614,6 @@ mod tests { #[test] fn filter_depth() { - let path = tempfile::tempdir().unwrap(); - let mut options = EnvOpenOptions::new(); - options.map_size(10 * 1024 * 1024); // 10 MB - let index = Index::new(options, &path).unwrap(); - - // Set the filterable fields to be the channel. - let mut wtxn = index.write_txn().unwrap(); - let mut builder = Settings::new(&mut wtxn, &index); - builder.set_searchable_fields(vec![S("account_ids")]); - builder.set_filterable_fields(hashset! { S("account_ids") }); - builder.execute(|_| ()).unwrap(); - wtxn.commit().unwrap(); - // generates a big (2 MiB) filter with too much of ORs. let tipic_filter = "account_ids=14361 OR "; let mut filter_string = String::with_capacity(tipic_filter.len() * 14360);