From eb082cdd861d5b80d9c5488e4a2fd590065cd905 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Sat, 14 Mar 2026 12:03:01 +1300 Subject: [PATCH] fix: increase GraphQL Legacy attribute polling timeout to 240s Co-Authored-By: Claude Opus 4.6 --- .../e2e/Services/GraphQL/Legacy/DatabaseClientTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/e2e/Services/GraphQL/Legacy/DatabaseClientTest.php b/tests/e2e/Services/GraphQL/Legacy/DatabaseClientTest.php index 4d34dc6b23..4513644688 100644 --- a/tests/e2e/Services/GraphQL/Legacy/DatabaseClientTest.php +++ b/tests/e2e/Services/GraphQL/Legacy/DatabaseClientTest.php @@ -218,7 +218,7 @@ class DatabaseClientTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ]); $this->assertEquals('available', $response['body']['status']); - }, 30000, 250); + }, 240000, 500); $this->assertEventually(function () use ($data) { $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['database']['_id'] . '/collections/' . $data['collection']['_id'] . '/attributes/age', [ 'content-type' => 'application/json', @@ -226,7 +226,7 @@ class DatabaseClientTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ]); $this->assertEquals('available', $response['body']['status']); - }, 30000, 250); + }, 240000, 500); $projectId = $this->getProject()['$id']; $query = $this->getQuery(self::CREATE_DOCUMENT); @@ -333,7 +333,7 @@ class DatabaseClientTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ]); $this->assertEquals('available', $response['body']['status']); - }, 30000, 250); + }, 240000, 500); // Step 4: Create documents $query = $this->getQuery(self::CREATE_DOCUMENTS); @@ -635,7 +635,7 @@ class DatabaseClientTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ]); $this->assertEquals('available', $response['body']['status']); - }, 30000, 250); + }, 240000, 500); $this->assertEventually(function () use ($data) { $response = $this->client->call(Client::METHOD_GET, '/databases/' . $data['database']['_id'] . '/collections/' . $data['collection']['_id'] . '/attributes/age', [ 'content-type' => 'application/json', @@ -643,7 +643,7 @@ class DatabaseClientTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ]); $this->assertEquals('available', $response['body']['status']); - }, 30000, 250); + }, 240000, 500); $projectId = $this->getProject()['$id'];