Skip to content

Commit e27cfcd

Browse files
authored
Merge pull request #440 from clue-labs/tests-memory
Improve test suite to skip memory tests when lowering memory limit does not work
2 parents 59961cc + 8316276 commit e27cfcd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/HttpServerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,9 @@ public function testConstructServerWithUnlimitedMemoryLimitDoesNotLimitConcurren
404404
public function testConstructServerWithMemoryLimitDoesLimitConcurrency()
405405
{
406406
$old = ini_get('memory_limit');
407-
ini_set('memory_limit', '100M');
407+
if (@ini_set('memory_limit', '128M') === false) {
408+
$this->markTestSkipped('Unable to change memory limit');
409+
}
408410

409411
$http = new HttpServer(function () { });
410412

0 commit comments

Comments
 (0)