diff --git a/meilisearch/tests/common/server.rs b/meilisearch/tests/common/server.rs index 40d8e8366..d0dcba456 100644 --- a/meilisearch/tests/common/server.rs +++ b/meilisearch/tests/common/server.rs @@ -39,7 +39,7 @@ impl Server { 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 }; Server { service, _dir: Some(dir) } @@ -54,7 +54,7 @@ impl Server { 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 }; Server { service, _dir: Some(dir) } @@ -67,7 +67,7 @@ impl Server { } pub async fn new_with_options(options: Opt) -> Result { - 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 }; Ok(Server { service, _dir: None })