From 28609c41768eeb17b4b457ab39c6f6c028de8064 Mon Sep 17 00:00:00 2001 From: Ryan Russell Date: Mon, 27 Jun 2022 17:59:33 -0500 Subject: [PATCH] chore(auth test): Correct `compute_authorized_search` macro Signed-off-by: Ryan Russell --- meilisearch-http/tests/auth/tenant_token.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meilisearch-http/tests/auth/tenant_token.rs b/meilisearch-http/tests/auth/tenant_token.rs index d82e170aa..6e2127aeb 100644 --- a/meilisearch-http/tests/auth/tenant_token.rs +++ b/meilisearch-http/tests/auth/tenant_token.rs @@ -115,7 +115,7 @@ static REFUSED_KEYS: Lazy> = Lazy::new(|| { ] }); -macro_rules! compute_autorized_search { +macro_rules! compute_authorized_search { ($tenant_tokens:expr, $filter:expr, $expected_count:expr) => { let mut server = Server::new_auth().await; server.use_admin_key("MASTER_KEY").await; @@ -251,7 +251,7 @@ async fn search_authorized_simple_token() { }, ]; - compute_autorized_search!(tenant_tokens, {}, 5); + compute_authorized_search!(tenant_tokens, {}, 5); } #[actix_rt::test] @@ -305,7 +305,7 @@ async fn search_authorized_filter_token() { }, ]; - compute_autorized_search!(tenant_tokens, {}, 3); + compute_authorized_search!(tenant_tokens, {}, 3); } #[actix_rt::test] @@ -359,7 +359,7 @@ async fn filter_search_authorized_filter_token() { }, ]; - compute_autorized_search!(tenant_tokens, "color = yellow", 1); + compute_authorized_search!(tenant_tokens, "color = yellow", 1); } #[actix_rt::test]