mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: update execution count assertion to include failures
This commit is contained in:
@@ -1656,7 +1656,9 @@ class UsageTest extends Scope
|
||||
{
|
||||
$functionId = $data['functionId'];
|
||||
$executionTime = $data['executionTime'];
|
||||
$executions = $data['executions'];
|
||||
// METRIC_EXECUTIONS counts every ExecutionCompleted event regardless of status,
|
||||
// so the assertion has to compare against successes + failures, not successes alone.
|
||||
$executions = $data['executions'] + $data['failures'];
|
||||
|
||||
$this->assertEventually(function () use ($functionId, $executions, $executionTime) {
|
||||
$response = $this->client->call(
|
||||
|
||||
Reference in New Issue
Block a user