From d5523cc6ac44a16282a1d3a6d469bb17cfc93162 Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 3 Aug 2023 12:28:08 +0200 Subject: [PATCH] fix the tests --- meilisearch/tests/common/server.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 })