1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

Add single retry to all usage tests

This commit is contained in:
Jake Barnby 2022-08-31 11:35:46 +12:00
parent 190d9684f0
commit b1cb6ab9bc
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -2,6 +2,7 @@
namespace Tests\E2E\General; namespace Tests\E2E\General;
use Appwrite\Tests\Retry;
use Tests\E2E\Client; use Tests\E2E\Client;
use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\ProjectCustom;
use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\Scope;
@ -25,6 +26,7 @@ class UsageTest extends Scope
parent::setUp(); parent::setUp();
} }
#[Retry(count: 1)]
public function testUsersStats(): array public function testUsersStats(): array
{ {
$project = $this->getProject(true); $project = $this->getProject(true);
@ -92,6 +94,7 @@ class UsageTest extends Scope
} }
/** @depends testUsersStats */ /** @depends testUsersStats */
#[Retry(count: 1)]
public function testStorageStats(array $data): array public function testStorageStats(array $data): array
{ {
$projectId = $data['projectId']; $projectId = $data['projectId'];
@ -236,6 +239,7 @@ class UsageTest extends Scope
} }
/** @depends testStorageStats */ /** @depends testStorageStats */
#[Retry(count: 1)]
public function testDatabaseStats(array $data): array public function testDatabaseStats(array $data): array
{ {
$headers = $data['headers']; $headers = $data['headers'];
@ -436,6 +440,7 @@ class UsageTest extends Scope
/** @depends testDatabaseStats */ /** @depends testDatabaseStats */
#[Retry(count: 1)]
public function testFunctionsStats(array $data): void public function testFunctionsStats(array $data): void
{ {
$headers = $data['headers']; $headers = $data['headers'];