1
0
Fork 0
mirror of synced 2024-07-04 06:00:53 +12:00

addressing comments

This commit is contained in:
shimon 2023-02-02 15:48:14 +02:00
parent ff78bf8685
commit aca960b7eb

View file

@ -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