Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Skip memory tests when lowering memory limit does not work
  • Loading branch information
clue committed Feb 4, 2022
commit 83162766662e19f3367d8d30da41e1c07c39c5b9
4 changes: 3 additions & 1 deletion tests/HttpServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ public function testConstructServerWithUnlimitedMemoryLimitDoesNotLimitConcurren
public function testConstructServerWithMemoryLimitDoesLimitConcurrency()
{
$old = ini_get('memory_limit');
ini_set('memory_limit', '100M');
if (@ini_set('memory_limit', '128M') === false) {
$this->markTestSkipped('Unable to change memory limit');
}

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

Expand Down