mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
Remove the memory limit to let Windows tests pass
This commit is contained in:
parent
b3a11e04af
commit
891d042164
@ -7,6 +7,7 @@ use actix_web::http::StatusCode;
|
|||||||
use byte_unit::{Byte, ByteUnit};
|
use byte_unit::{Byte, ByteUnit};
|
||||||
use meilisearch_auth::AuthController;
|
use meilisearch_auth::AuthController;
|
||||||
use meilisearch_http::setup_meilisearch;
|
use meilisearch_http::setup_meilisearch;
|
||||||
|
use meilisearch_lib::options::{IndexerOpts, MaxMemory};
|
||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
use tempfile::TempDir;
|
use tempfile::TempDir;
|
||||||
@ -134,6 +135,11 @@ pub fn default_settings(dir: impl AsRef<Path>) -> Opt {
|
|||||||
max_task_db_size: Byte::from_unit(4.0, ByteUnit::GiB).unwrap(),
|
max_task_db_size: Byte::from_unit(4.0, ByteUnit::GiB).unwrap(),
|
||||||
http_payload_size_limit: Byte::from_unit(10.0, ByteUnit::MiB).unwrap(),
|
http_payload_size_limit: Byte::from_unit(10.0, ByteUnit::MiB).unwrap(),
|
||||||
snapshot_dir: ".".into(),
|
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>)
|
..Parser::parse_from(None as Option<&str>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user