Add retries for flaky tests

This commit is contained in:
Jake Barnby
2022-12-22 16:12:45 +13:00
parent 6adbeb8b0d
commit e86994b597
2 changed files with 3 additions and 0 deletions
@@ -3,6 +3,7 @@
namespace Tests\E2E\Services\Account;
use Appwrite\SMS\Adapter\Mock;
use Appwrite\Tests\Retry;
use Tests\E2E\Client;
use Tests\E2E\Scopes\Scope;
use Tests\E2E\Scopes\ProjectCustom;
@@ -923,6 +924,7 @@ class AccountCustomClientTest extends Scope
/**
* @depends testUpdatePhone
*/
#[Retry(count: 1)]
public function testPhoneVerification(array $data): array
{
$session = $data['session'] ?? '';
+1
View File
@@ -874,6 +874,7 @@ trait UsersBase
/**
* @depends testGetUser
*/
#[Retry(count: 1)]
public function testUpdateAndGetUserPrefs(array $data): array
{
/**