mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 16:21:07 +00:00
Set max_memory value to unlimited during tests
because tests run several meilisearch in parallel, we over estimate the value for max_memory making the tests on widows crash
This commit is contained in:
@ -286,6 +286,12 @@ impl Deref for MaxMemory {
|
||||
}
|
||||
}
|
||||
|
||||
impl MaxMemory {
|
||||
pub fn unlimited() -> Self {
|
||||
Self(None)
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the total amount of bytes available or `None` if this system isn't supported.
|
||||
fn total_memory_bytes() -> Option<u64> {
|
||||
if System::IS_SUPPORTED {
|
||||
|
Reference in New Issue
Block a user