mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Fix compilation error in unit tests
This commit is contained in:
parent
c4287cdfac
commit
17401cfbe9
2 changed files with 12 additions and 8 deletions
|
@ -18,12 +18,16 @@ impl Server {
|
|||
pub fn with_uid(uid: &str) -> Server {
|
||||
let tmp_dir = TempDir::new("meilisearch").unwrap();
|
||||
|
||||
let default_db_options = meilisearch_core::DatabaseOptions::default();
|
||||
|
||||
let opt = Opt {
|
||||
db_path: tmp_dir.path().to_str().unwrap().to_string(),
|
||||
http_addr: "127.0.0.1:7700".to_owned(),
|
||||
master_key: None,
|
||||
env: "development".to_owned(),
|
||||
no_analytics: true,
|
||||
main_map_size: default_db_options.main_map_size,
|
||||
update_map_size: default_db_options.update_map_size
|
||||
};
|
||||
|
||||
let data = Data::new(opt.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue