From bdd088830a4da553fc413493d6970ebe875aead7 Mon Sep 17 00:00:00 2001 From: Jan Emmens Date: Wed, 29 Apr 2020 10:12:25 +0200 Subject: [PATCH] Add DatabaseOptions arg to query_builder test --- meilisearch-core/src/query_builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch-core/src/query_builder.rs b/meilisearch-core/src/query_builder.rs index 68ed97537..d95c19713 100644 --- a/meilisearch-core/src/query_builder.rs +++ b/meilisearch-core/src/query_builder.rs @@ -143,7 +143,7 @@ mod tests { use crate::DocIndex; use crate::automaton::normalize_str; use crate::bucket_sort::SimpleMatch; - use crate::database::Database; + use crate::database::{Database,DatabaseOptions}; use crate::store::Index; use meilisearch_schema::Schema; @@ -249,7 +249,7 @@ mod tests { impl<'a> FromIterator<(&'a str, &'a [DocIndex])> for TempDatabase { fn from_iter>(iter: I) -> Self { let tempdir = TempDir::new().unwrap(); - let database = Database::open_or_create(&tempdir).unwrap(); + let database = Database::open_or_create(&tempdir, DatabaseOptions::default()).unwrap(); let index = database.create_index("default").unwrap(); let db = &database;