mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02: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:
parent
33514b28be
commit
c0f9c891f5
2 changed files with 12 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue