mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
test: fix delete timeout tests
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Tests\E2E\Services\Storage;
|
||||
|
||||
use Appwrite\Tests\Async;
|
||||
use Tests\E2E\Client;
|
||||
use Tests\E2E\Scopes\ProjectCustom;
|
||||
use Tests\E2E\Scopes\Scope;
|
||||
@@ -16,6 +17,7 @@ class StorageCustomServerTest extends Scope
|
||||
use StorageBase;
|
||||
use ProjectCustom;
|
||||
use SideServer;
|
||||
use Async;
|
||||
|
||||
public function testCreateBucket(): array
|
||||
{
|
||||
@@ -286,18 +288,21 @@ class StorageCustomServerTest extends Scope
|
||||
$this->assertEquals(204, $response['headers']['status-code']);
|
||||
$this->assertEmpty($response['body']);
|
||||
|
||||
$response = $this->client->call(
|
||||
Client::METHOD_GET,
|
||||
'/storage/buckets/' . $id,
|
||||
array_merge(
|
||||
[
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
],
|
||||
$this->getHeaders()
|
||||
)
|
||||
);
|
||||
$this->assertEquals(404, $response['headers']['status-code']);
|
||||
$this->assertEventually(function () use ($id) {
|
||||
$response = $this->client->call(
|
||||
Client::METHOD_GET,
|
||||
'/storage/buckets/' . $id,
|
||||
array_merge(
|
||||
[
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
],
|
||||
$this->getHeaders()
|
||||
)
|
||||
);
|
||||
|
||||
$this->assertEquals(404, $response['headers']['status-code']);
|
||||
});
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user