fix: increase Sites activation timeout to 600s and add retry to testScopes

MongoDB CI builds take longer to process the deployment queue, causing
testSiteDomainReclaiming to timeout at 400s. Increase to 600s.

testScopes has an intermittent 401 auth failure - add #[Retry(count: 3)]
for resilience.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jake Barnby
2026-02-13 09:16:27 +13:00
co-authored by Claude Opus 4.6
parent a13b9c0a88
commit aa369dc371
2 changed files with 2 additions and 1 deletions
@@ -1776,6 +1776,7 @@ class FunctionsCustomServerTest extends Scope
$this->assertEquals(204, $user['headers']['status-code']);
}
#[Retry(count: 3)]
public function testScopes()
{
$functionId = $this->setupFunction([
+1 -1
View File
@@ -76,7 +76,7 @@ trait SitesBase
'x-appwrite-key' => $this->getProject()['apiKey'],
]));
$this->assertEquals($deploymentId, $site['body']['deploymentId'], 'Deployment is not activated, deployment: ' . json_encode($site['body'], JSON_PRETTY_PRINT));
}, 400000, 500);
}, 600000, 500);
}
return $deploymentId;