Fix usageTest

This commit is contained in:
Khushboo Verma 2025-01-20 01:18:43 +05:30
parent 4a3ea540bf
commit e49d9f39a8

View file

@ -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);