From ded3cd0dd67a5942474e10c44079e2f920f1b4ca Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 30 Jul 2024 15:03:54 +0200 Subject: [PATCH] an additionnal 30% of perf for the tests --- meilisearch/tests/common/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch/tests/common/server.rs b/meilisearch/tests/common/server.rs index 2a5d78241..a5430db2f 100644 --- a/meilisearch/tests/common/server.rs +++ b/meilisearch/tests/common/server.rs @@ -414,8 +414,8 @@ pub fn default_settings(dir: impl AsRef) -> Opt { // memory has to be unlimited because several meilisearch are running in test context. max_indexing_memory: MaxMemory::unlimited(), skip_index_budget: true, - // We cannot use more than 1 indexing threads otherwise some tests become non-deterministic - max_indexing_threads: MaxThreads::from_str("1").unwrap(), + // Having 2 threads makes the tests way faster + max_indexing_threads: MaxThreads::from_str("2").unwrap(), }, experimental_enable_metrics: false, ..Parser::parse_from(None as Option<&str>)