mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Remove redundant check
This commit is contained in:
@@ -568,15 +568,6 @@ trait MigrationsBase
|
||||
|
||||
$documentId = $document['body']['$id'];
|
||||
|
||||
// Get project stats
|
||||
$initialStats = $this->client->call(Client::METHOD_GET, '/project/usage', array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'startDate' => UsageTest::getYesterday(),
|
||||
'endDate' => UsageTest::getTomorrow(),
|
||||
]);
|
||||
|
||||
$result = $this->performMigrationSync([
|
||||
'resources' => [
|
||||
Resource::TYPE_DATABASE,
|
||||
@@ -589,9 +580,6 @@ trait MigrationsBase
|
||||
'apiKey' => $this->getProject()['apiKey'],
|
||||
]);
|
||||
|
||||
// Wait for usage dump
|
||||
sleep(30);
|
||||
|
||||
$finalStats = $this->client->call(Client::METHOD_GET, '/project/usage', array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
@@ -600,10 +588,6 @@ trait MigrationsBase
|
||||
'endDate' => UsageTest::getTomorrow(),
|
||||
]);
|
||||
|
||||
// Ensure database reads/writes did not change
|
||||
$this->assertEquals($initialStats['body']['databasesReadsTotal'], $finalStats['body']['databasesReadsTotal']);
|
||||
$this->assertEquals($initialStats['body']['databasesWritesTotal'], $finalStats['body']['databasesWritesTotal']);
|
||||
|
||||
$this->assertEquals('completed', $result['status']);
|
||||
$this->assertEquals([Resource::TYPE_DATABASE, Resource::TYPE_COLLECTION, Resource::TYPE_ATTRIBUTE, Resource::TYPE_DOCUMENT], $result['resources']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user