Fix flaky tests

This commit is contained in:
Matej Bačo
2025-03-03 12:44:28 +01:00
parent 7e00bc493c
commit 2384113a04
2 changed files with 4 additions and 0 deletions
@@ -2,6 +2,7 @@
namespace Tests\E2E\Services\Functions;
use Appwrite\Tests\Retry;
use Appwrite\Functions\Specification;
use Tests\E2E\Client;
use Tests\E2E\Scopes\ProjectCustom;
@@ -511,6 +512,7 @@ class FunctionsCustomServerTest extends Scope
/**
* @depends testUpdateFunction
*/
#[Retry(count: 3)]
public function testCancelDeploymentBuild($data): void
{
$functionId = $data['functionId'];
@@ -2,6 +2,7 @@
namespace Tests\E2E\Services\Sites;
use Appwrite\Tests\Retry;
use Appwrite\Sites\Specification;
use Tests\E2E\Client;
use Tests\E2E\Scopes\ProjectCustom;
@@ -674,6 +675,7 @@ class SitesCustomServerTest extends Scope
$this->cleanupSite($siteId);
}
#[Retry(count: 3)]
public function testCancelDeploymentBuild(): void
{
$siteId = $this->setupSite([