From 0084868f8fcb7f9a58bb366061c6fabd034bcb12 Mon Sep 17 00:00:00 2001 From: "Santhosh Reddy Vootukuri (SUNNY) (from Dev Box)" Date: Sun, 8 Sep 2024 09:58:41 -0700 Subject: [PATCH] remove await --- meilisearch/tests/index/update_index.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meilisearch/tests/index/update_index.rs b/meilisearch/tests/index/update_index.rs index 894e5c379..8fadcf92c 100644 --- a/meilisearch/tests/index/update_index.rs +++ b/meilisearch/tests/index/update_index.rs @@ -9,7 +9,7 @@ use crate::json; #[actix_rt::test] async fn update_primary_key() { - let server = Server::new_shared().await; + let server = Server::new_shared(); let index = server.unique_index(); let (task, code) = index.create(None).await; @@ -41,7 +41,7 @@ async fn update_primary_key() { #[actix_rt::test] async fn create_and_update_with_different_encoding() { - let server = Server::new_shared().await; + let server = Server::new_shared(); let index = server.index_with_encoder("test", Encoder::Gzip); let (task, code) = index.create(None).await; @@ -57,7 +57,7 @@ async fn create_and_update_with_different_encoding() { #[actix_rt::test] async fn update_nothing() { - let server = Server::new_shared().await; + let server = Server::new_shared(); let index = server.unique_index(); let (task, code) = index.create(None).await; @@ -76,7 +76,7 @@ async fn update_nothing() { #[actix_rt::test] async fn error_update_existing_primary_key() { - let server = Server::new_shared().await; + let server = Server::new_shared(); let index = server.unique_index(); let (task, code) = index.create(Some("id")).await; @@ -108,7 +108,7 @@ async fn error_update_existing_primary_key() { #[actix_rt::test] async fn error_update_unexisting_index() { - let server = Server::new_shared().await; + let server = Server::new_shared(); let index = shared_does_not_exists_index(); let (task, code) = index.update(None).await;