mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9123 from open-sausages/pulls/4.3/increase-memory-limit-max
FIX core memory limit test
This commit is contained in:
commit
9efe9e96eb
@ -66,6 +66,7 @@ class MemoryLimitTest extends SapphireTest
|
||||
|
||||
// No argument means unlimited (but only if originally allowed)
|
||||
if (is_numeric($this->origMemLimitMax) && $this->origMemLimitMax < 0) {
|
||||
Environment::setMemoryLimitMax(-1);
|
||||
Environment::increaseMemoryLimitTo();
|
||||
$this->assertEquals(-1, ini_get('memory_limit'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user