From aca960b7eb937de8f5afbaf045ee4be2d2c457e3 Mon Sep 17 00:00:00 2001 From: shimon Date: Thu, 2 Feb 2023 15:48:14 +0200 Subject: [PATCH] addressing comments --- tests/e2e/General/UsageTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index e21164804a..7ef80edb73 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -85,7 +85,7 @@ class UsageTest extends Scope #[Retry(count: 1)] public function testUsersStats(array $data): array { - sleep(30); + sleep(20); $projectId = $data['projectId']; $headers = $data['headers']; @@ -431,7 +431,7 @@ class UsageTest extends Scope $collectionsUpdate++; $requestsCount++; - sleep(30); + sleep(20); for ($i = 0; $i < 10; $i++) { $name = uniqid() . ' collection'; @@ -652,7 +652,7 @@ class UsageTest extends Scope $code = realpath(__DIR__ . '/../../resources/functions') . "/php/code.tar.gz"; $this->packageCode('php'); - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', $headers, [ + $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge($headers, ['content-type' => 'multipart/form-data']), [ 'entrypoint' => 'index.php', 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), 'activate' => true