From 34254b42b63692503f2fafd8a03ebf0d12ce8afd Mon Sep 17 00:00:00 2001 From: Kushal Kumar Date: Tue, 10 Dec 2024 00:00:43 +0530 Subject: [PATCH] refactor: use test configuration on import Signed-off-by: Kushal Kumar --- crates/meilisearch/src/routes/indexes/mod.rs | 1 + crates/meilisearch/src/routes/indexes/search_test.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/meilisearch/src/routes/indexes/mod.rs b/crates/meilisearch/src/routes/indexes/mod.rs index 6879d17e7..c23edfc12 100644 --- a/crates/meilisearch/src/routes/indexes/mod.rs +++ b/crates/meilisearch/src/routes/indexes/mod.rs @@ -28,6 +28,7 @@ use crate::Opt; pub mod documents; pub mod facet_search; pub mod search; +#[cfg(test)] mod search_test; mod search_analytics; pub mod settings; diff --git a/crates/meilisearch/src/routes/indexes/search_test.rs b/crates/meilisearch/src/routes/indexes/search_test.rs index 8b1605eb1..fb9ef6154 100644 --- a/crates/meilisearch/src/routes/indexes/search_test.rs +++ b/crates/meilisearch/src/routes/indexes/search_test.rs @@ -1,4 +1,3 @@ -#[cfg(test)] pub mod search_test { use crate::routes::indexes::search::fix_sort_query_parameters;