From 83162766662e19f3367d8d30da41e1c07c39c5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Fri, 4 Feb 2022 08:56:40 +0100 Subject: [PATCH] Skip memory tests when lowering memory limit does not work --- tests/HttpServerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/HttpServerTest.php b/tests/HttpServerTest.php index 23dcc758..a6d8057b 100644 --- a/tests/HttpServerTest.php +++ b/tests/HttpServerTest.php @@ -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 () { });