mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX core memory limit test
This commit is contained in:
parent
b01dc580e1
commit
fcd7a1e63e
@ -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