mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Fix usageTest
This commit is contained in:
parent
4a3ea540bf
commit
e49d9f39a8
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue