From deb5037605f41133bb90c1a74c38b34075faa353 Mon Sep 17 00:00:00 2001 From: Aleksander Grzegorzewski Date: Wed, 13 Nov 2024 15:56:49 +0100 Subject: [PATCH] updated memory limit in fixture --- features/fixtures/laravel11/routes/web.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/fixtures/laravel11/routes/web.php b/features/fixtures/laravel11/routes/web.php index 973608e..bb136a2 100644 --- a/features/fixtures/laravel11/routes/web.php +++ b/features/fixtures/laravel11/routes/web.php @@ -75,7 +75,10 @@ function noOomResponse() { }); Route::get('/oom/small', function () { - ini_set('memory_limit', memory_get_usage() + (1024 * 1024 * 5)); + // The 5 MiB default limit is not enough to + // deliver the OOM error in this scenario. + Bugsnag::setMemoryLimitIncrease(1024 * 1024 * 6); // 6 MiB + ini_set('memory_limit', memory_get_usage() + (1024 * 1024 * 5)); // 5 MiB ini_set('display_errors', true); $i = 0;