From 891d042164cfbe04fb8bb7018405173eb60b2eca Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 21 Mar 2022 12:10:12 +0100 Subject: [PATCH] Remove the memory limit to let Windows tests pass --- meilisearch-http/tests/common/server.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meilisearch-http/tests/common/server.rs b/meilisearch-http/tests/common/server.rs index 7a2b0da86..a1877c78e 100644 --- a/meilisearch-http/tests/common/server.rs +++ b/meilisearch-http/tests/common/server.rs @@ -7,6 +7,7 @@ use actix_web::http::StatusCode; use byte_unit::{Byte, ByteUnit}; use meilisearch_auth::AuthController; use meilisearch_http::setup_meilisearch; +use meilisearch_lib::options::{IndexerOpts, MaxMemory}; use once_cell::sync::Lazy; use serde_json::Value; use tempfile::TempDir; @@ -134,6 +135,11 @@ pub fn default_settings(dir: impl AsRef) -> Opt { max_task_db_size: Byte::from_unit(4.0, ByteUnit::GiB).unwrap(), http_payload_size_limit: Byte::from_unit(10.0, ByteUnit::MiB).unwrap(), snapshot_dir: ".".into(), + indexer_options: IndexerOpts { + // memory has to be unlimited because several meilisearch are running in test context. + max_memory: MaxMemory::unlimited(), + ..Parser::parse_from(None as Option<&str>) + }, ..Parser::parse_from(None as Option<&str>) } }