Add DatabaseOptions arg to query_builder test

This commit is contained in:
Jan Emmens 2020-04-29 10:12:25 +02:00
parent 17401cfbe9
commit bdd088830a

View File

@ -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<I: IntoIterator<Item = (&'a str, &'a [DocIndex])>>(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;