From 59e782c94d988d83ddfb3c651a019e387c8bf535 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Wed, 10 Jul 2024 07:04:25 +0000 Subject: [PATCH] Fix Tests, increase default max's for memory and CPUs --- .env | 4 ++-- .../e2e/Services/Functions/FunctionsCustomServerTest.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env b/.env index 6fb438ee63..d034359eba 100644 --- a/.env +++ b/.env @@ -67,8 +67,8 @@ _APP_STORAGE_PREVIEW_LIMIT=20000000 _APP_FUNCTIONS_SIZE_LIMIT=30000000 _APP_FUNCTIONS_TIMEOUT=900 _APP_FUNCTIONS_BUILD_TIMEOUT=900 -_APP_FUNCTIONS_CPUS=1 -_APP_FUNCTIONS_MEMORY=512 +_APP_FUNCTIONS_CPUS=2 +_APP_FUNCTIONS_MEMORY=1024 _APP_FUNCTIONS_INACTIVE_THRESHOLD=600 _APP_FUNCTIONS_MAINTENANCE_INTERVAL=600 _APP_FUNCTIONS_RUNTIMES_NETWORK=runtimes diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index cba7ec53cb..357cbcfd4a 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -404,8 +404,8 @@ class FunctionsCustomServerTest extends Scope 'timeout' => 15, 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'memory' => 4096, - 'cpus' => 4 + 'memory' => 1024, + 'cpus' => 2 ]); $this->assertEquals(200, $response1['headers']['status-code']); @@ -421,8 +421,8 @@ class FunctionsCustomServerTest extends Scope ], $response1['body']['events']); $this->assertEquals('0 0 1 1 *', $response1['body']['schedule']); $this->assertEquals(15, $response1['body']['timeout']); - $this->assertEquals(4096, $response1['body']['memory']); - $this->assertEquals(4, $response1['body']['cpus']); + $this->assertEquals(1024, $response1['body']['memory']); + $this->assertEquals(2, $response1['body']['cpus']); /** * Test for FAILURE