fix the tests

This commit is contained in:
Tamo 2023-08-03 12:28:08 +02:00
parent fe7a312ec6
commit d5523cc6ac

View File

@ -39,7 +39,7 @@ impl Server {
let options = default_settings(dir.path()); let options = default_settings(dir.path());
let (index_scheduler, auth) = setup_meilisearch(&options).unwrap(); let (index_scheduler, auth) = setup_meilisearch(&options, None).await.unwrap();
let service = Service { index_scheduler, auth, options, api_key: None }; let service = Service { index_scheduler, auth, options, api_key: None };
Server { service, _dir: Some(dir) } Server { service, _dir: Some(dir) }
@ -54,7 +54,7 @@ impl Server {
options.master_key = Some("MASTER_KEY".to_string()); options.master_key = Some("MASTER_KEY".to_string());
let (index_scheduler, auth) = setup_meilisearch(&options).unwrap(); let (index_scheduler, auth) = setup_meilisearch(&options, None).await.unwrap();
let service = Service { index_scheduler, auth, options, api_key: None }; let service = Service { index_scheduler, auth, options, api_key: None };
Server { service, _dir: Some(dir) } Server { service, _dir: Some(dir) }
@ -67,7 +67,7 @@ impl Server {
} }
pub async fn new_with_options(options: Opt) -> Result<Self, anyhow::Error> { pub async fn new_with_options(options: Opt) -> Result<Self, anyhow::Error> {
let (index_scheduler, auth) = setup_meilisearch(&options)?; let (index_scheduler, auth) = setup_meilisearch(&options, None).await?;
let service = Service { index_scheduler, auth, options, api_key: None }; let service = Service { index_scheduler, auth, options, api_key: None };
Ok(Server { service, _dir: None }) Ok(Server { service, _dir: None })