From 89daa5e479ac34e7fe508e6aa8ac7b3da860323f Mon Sep 17 00:00:00 2001 From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com> Date: Thu, 2 May 2024 14:30:18 +0530 Subject: [PATCH] Update payload size to 11 MB to accomodate 10 MB chunk size --- app/http.php | 2 +- tests/e2e/Services/Storage/StorageBase.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/http.php b/app/http.php index 4d5718e94b..12554aa3a7 100644 --- a/app/http.php +++ b/app/http.php @@ -32,7 +32,7 @@ $http = new Server( mode: SWOOLE_PROCESS, ); -$payloadSize = 10 * (1024 * 1024); // 10MB +$payloadSize = 11 * (1024 * 1024); // 11MB $workerNumber = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 6)); $http diff --git a/tests/e2e/Services/Storage/StorageBase.php b/tests/e2e/Services/Storage/StorageBase.php index 78548ca1ac..ce5f44d5a0 100644 --- a/tests/e2e/Services/Storage/StorageBase.php +++ b/tests/e2e/Services/Storage/StorageBase.php @@ -125,11 +125,11 @@ trait StorageBase /** * Failure - * Test for Chunk above 5MB + * Test for Chunk above 10MB */ $source = __DIR__ . "/../../../resources/disk-a/large-file.mp4"; $totalSize = \filesize($source); - $chunkSize = 6 * 1024 * 1024; + $chunkSize = 11 * 1024 * 1024; $handle = @fopen($source, "rb"); $fileId = 'unique()'; $mimeType = mime_content_type($source);