From b1cb6ab9bc1e88ca801bc27bc9026884aae6a4c8 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 31 Aug 2022 11:35:46 +1200 Subject: [PATCH] Add single retry to all usage tests --- tests/e2e/General/UsageTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index c21f29992c..cde5dd3e29 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -2,6 +2,7 @@ namespace Tests\E2E\General; +use Appwrite\Tests\Retry; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; @@ -25,6 +26,7 @@ class UsageTest extends Scope parent::setUp(); } + #[Retry(count: 1)] public function testUsersStats(): array { $project = $this->getProject(true); @@ -92,6 +94,7 @@ class UsageTest extends Scope } /** @depends testUsersStats */ + #[Retry(count: 1)] public function testStorageStats(array $data): array { $projectId = $data['projectId']; @@ -236,6 +239,7 @@ class UsageTest extends Scope } /** @depends testStorageStats */ + #[Retry(count: 1)] public function testDatabaseStats(array $data): array { $headers = $data['headers']; @@ -436,6 +440,7 @@ class UsageTest extends Scope /** @depends testDatabaseStats */ + #[Retry(count: 1)] public function testFunctionsStats(array $data): void { $headers = $data['headers'];