fix: add sleep for async attribute deletion verification

Attribute deletion is asynchronous - add sleep to wait for deletion
to complete before verifying the attribute no longer exists.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jake Barnby
2026-02-05 02:01:01 +13:00
co-authored by Claude Opus 4.5
parent 45a3793cc0
commit 6850d7ae9e
2 changed files with 6 additions and 0 deletions
@@ -748,6 +748,9 @@ class DatabasesStringTypesTest extends Scope
$this->assertEquals(204, $deleteVarchar['headers']['status-code']);
// Wait for async deletion to complete
sleep(2);
// Verify deletion
$getDeleted = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/varchar_min', [
'content-type' => 'application/json',
@@ -813,6 +813,9 @@ class DatabasesStringTypesTest extends Scope
$this->assertEquals(204, $deleteVarchar['headers']['status-code']);
// Wait for async deletion to complete
sleep(2);
// Verify deletion
$getDeleted = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/varchar_min', [
'content-type' => 'application/json',