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;