Revert "(fix): increase GraphQL schema polling timeouts to match CI expectations"

This reverts commit 4e32497be1.
This commit is contained in:
Jake Barnby
2026-03-31 16:48:32 +13:00
parent 4e32497be1
commit 7e49cf0bed
6 changed files with 12 additions and 12 deletions
@@ -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,
@@ -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()
@@ -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'];
@@ -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,
@@ -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()
@@ -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'];