mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
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:
co-authored by
Claude Opus 4.5
parent
45a3793cc0
commit
6850d7ae9e
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user