mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix usageTest
This commit is contained in:
@@ -937,7 +937,7 @@ class UsageTest extends Scope
|
||||
|
||||
$this->assertEquals(201, $response['headers']['status-code']);
|
||||
$this->assertNotEmpty($response['body']['$id']);
|
||||
$this->assertEquals($functionId, $response['body']['functionId']);
|
||||
$this->assertEquals($functionId, $response['body']['resourceId']);
|
||||
|
||||
$executionTime += (int) ($response['body']['duration'] * 1000);
|
||||
|
||||
@@ -961,7 +961,7 @@ class UsageTest extends Scope
|
||||
|
||||
$this->assertEquals(201, $response['headers']['status-code']);
|
||||
$this->assertNotEmpty($response['body']['$id']);
|
||||
$this->assertEquals($functionId, $response['body']['functionId']);
|
||||
$this->assertEquals($functionId, $response['body']['resourceId']);
|
||||
|
||||
if ($response['body']['status'] == 'failed') {
|
||||
$failures += 1;
|
||||
@@ -984,7 +984,7 @@ class UsageTest extends Scope
|
||||
|
||||
$this->assertEquals(202, $response['headers']['status-code']);
|
||||
$this->assertNotEmpty($response['body']['$id']);
|
||||
$this->assertEquals($functionId, $response['body']['functionId']);
|
||||
$this->assertEquals($functionId, $response['body']['resourceId']);
|
||||
|
||||
sleep(self::WAIT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user