addressing comments
This commit is contained in:
parent
ff78bf8685
commit
aca960b7eb
|
@ -85,7 +85,7 @@ class UsageTest extends Scope
|
||||||
#[Retry(count: 1)]
|
#[Retry(count: 1)]
|
||||||
public function testUsersStats(array $data): array
|
public function testUsersStats(array $data): array
|
||||||
{
|
{
|
||||||
sleep(30);
|
sleep(20);
|
||||||
|
|
||||||
$projectId = $data['projectId'];
|
$projectId = $data['projectId'];
|
||||||
$headers = $data['headers'];
|
$headers = $data['headers'];
|
||||||
|
@ -431,7 +431,7 @@ class UsageTest extends Scope
|
||||||
$collectionsUpdate++;
|
$collectionsUpdate++;
|
||||||
$requestsCount++;
|
$requestsCount++;
|
||||||
|
|
||||||
sleep(30);
|
sleep(20);
|
||||||
|
|
||||||
for ($i = 0; $i < 10; $i++) {
|
for ($i = 0; $i < 10; $i++) {
|
||||||
$name = uniqid() . ' collection';
|
$name = uniqid() . ' collection';
|
||||||
|
@ -652,7 +652,7 @@ class UsageTest extends Scope
|
||||||
$code = realpath(__DIR__ . '/../../resources/functions') . "/php/code.tar.gz";
|
$code = realpath(__DIR__ . '/../../resources/functions') . "/php/code.tar.gz";
|
||||||
$this->packageCode('php');
|
$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',
|
'entrypoint' => 'index.php',
|
||||||
'code' => new CURLFile($code, 'application/x-gzip', \basename($code)),
|
'code' => new CURLFile($code, 'application/x-gzip', \basename($code)),
|
||||||
'activate' => true
|
'activate' => true
|
||||||
|
|
Loading…
Reference in a new issue