From 7e49cf0bed203bd8724df28f5e72534b0e98b66e Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 31 Mar 2026 16:48:32 +1300 Subject: [PATCH] Revert "(fix): increase GraphQL schema polling timeouts to match CI expectations" This reverts commit 4e32497be1ca26fe23cb04d161365984aef6f0e0. --- tests/e2e/Services/GraphQL/Legacy/AbuseTest.php | 2 +- tests/e2e/Services/GraphQL/Legacy/AuthTest.php | 2 +- .../e2e/Services/GraphQL/Legacy/DatabaseClientTest.php | 10 +++++----- tests/e2e/Services/GraphQL/TablesDB/AbuseTest.php | 2 +- tests/e2e/Services/GraphQL/TablesDB/AuthTest.php | 2 +- .../Services/GraphQL/TablesDB/DatabaseClientTest.php | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/e2e/Services/GraphQL/Legacy/AbuseTest.php b/tests/e2e/Services/GraphQL/Legacy/AbuseTest.php index 46f39791a7..dfec046f55 100644 --- a/tests/e2e/Services/GraphQL/Legacy/AbuseTest.php +++ b/tests/e2e/Services/GraphQL/Legacy/AbuseTest.php @@ -182,7 +182,7 @@ class AbuseTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ]); $this->assertEquals('available', $response['body']['status']); - }, 240000, 500); + }, 30000, 250); return [ 'databaseId' => $databaseId, diff --git a/tests/e2e/Services/GraphQL/Legacy/AuthTest.php b/tests/e2e/Services/GraphQL/Legacy/AuthTest.php index 847a6d8820..4a3e49cc60 100644 --- a/tests/e2e/Services/GraphQL/Legacy/AuthTest.php +++ b/tests/e2e/Services/GraphQL/Legacy/AuthTest.php @@ -149,7 +149,7 @@ class AuthTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ]); $this->assertEquals('available', $response['body']['status']); - }, 240000, 500); + }, 30000, 250); } public function testInvalidAuth() diff --git a/tests/e2e/Services/GraphQL/Legacy/DatabaseClientTest.php b/tests/e2e/Services/GraphQL/Legacy/DatabaseClientTest.php index 4513644688..4d34dc6b23 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']); - }, 240000, 500); + }, 30000, 250); $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']); - }, 240000, 500); + }, 30000, 250); $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']); - }, 240000, 500); + }, 30000, 250); // 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']); - }, 240000, 500); + }, 30000, 250); $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']); - }, 240000, 500); + }, 30000, 250); $projectId = $this->getProject()['$id']; diff --git a/tests/e2e/Services/GraphQL/TablesDB/AbuseTest.php b/tests/e2e/Services/GraphQL/TablesDB/AbuseTest.php index 74ec12e623..05185149fd 100644 --- a/tests/e2e/Services/GraphQL/TablesDB/AbuseTest.php +++ b/tests/e2e/Services/GraphQL/TablesDB/AbuseTest.php @@ -182,7 +182,7 @@ class AbuseTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ])); $this->assertEquals('available', $response['body']['status']); - }, 240000, 500); + }, 30000, 250); return [ 'databaseId' => $databaseId, diff --git a/tests/e2e/Services/GraphQL/TablesDB/AuthTest.php b/tests/e2e/Services/GraphQL/TablesDB/AuthTest.php index a798a4451f..9c6910fb30 100644 --- a/tests/e2e/Services/GraphQL/TablesDB/AuthTest.php +++ b/tests/e2e/Services/GraphQL/TablesDB/AuthTest.php @@ -150,7 +150,7 @@ class AuthTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ])); $this->assertEquals('available', $response['body']['status']); - }, 240000, 500); + }, 30000, 250); } public function testInvalidAuth() diff --git a/tests/e2e/Services/GraphQL/TablesDB/DatabaseClientTest.php b/tests/e2e/Services/GraphQL/TablesDB/DatabaseClientTest.php index 370aac2f12..9a39db88f3 100644 --- a/tests/e2e/Services/GraphQL/TablesDB/DatabaseClientTest.php +++ b/tests/e2e/Services/GraphQL/TablesDB/DatabaseClientTest.php @@ -217,7 +217,7 @@ class DatabaseClientTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ])); $this->assertEquals('available', $response['body']['status']); - }, 240000, 500); + }, 30000, 250); } $projectId = $this->getProject()['$id']; @@ -330,7 +330,7 @@ class DatabaseClientTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ])); $this->assertEquals('available', $response['body']['status']); - }, 240000, 500); + }, 30000, 250); // Step 4: Create rows $query = $this->getQuery(self::CREATE_ROWS); @@ -623,7 +623,7 @@ class DatabaseClientTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ])); $this->assertEquals('available', $response['body']['status']); - }, 240000, 500); + }, 30000, 250); } $projectId = $this->getProject()['$id'];