From 3a68c77406c3cd0f65e76391f91c370942316751 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Tue, 24 Sep 2024 14:28:11 +0900 Subject: [PATCH] Try and get tests working --- src/Appwrite/Platform/Workers/UsageDump.php | 2 +- tests/e2e/General/UsageTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Workers/UsageDump.php b/src/Appwrite/Platform/Workers/UsageDump.php index 7bd848d586..f2f4ad654c 100644 --- a/src/Appwrite/Platform/Workers/UsageDump.php +++ b/src/Appwrite/Platform/Workers/UsageDump.php @@ -77,7 +77,7 @@ class UsageDump extends Action if (str_contains($key, METRIC_DATABASES_STORAGE)) { $this->handleDatabaseStorage($key, $dbForProject); - return; + continue; } foreach ($this->periods as $period => $format) { diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index c6725ba6e1..e5b9f0f819 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -324,7 +324,7 @@ class UsageTest extends Scope ] ); - $this->assertEquals(21, count($response['body'])); + $this->assertEquals(22, count($response['body'])); $this->assertEquals(1, count($response['body']['requests'])); $this->assertEquals($requestsTotal, $response['body']['requests'][array_key_last($response['body']['requests'])]['value']); $this->validateDates($response['body']['requests']); @@ -545,7 +545,7 @@ class UsageTest extends Scope ] ); - $this->assertEquals(21, count($response['body'])); + $this->assertEquals(22, count($response['body'])); $this->assertEquals(1, count($response['body']['requests'])); $this->assertEquals(1, count($response['body']['network'])); $this->assertEquals($requestsTotal, $response['body']['requests'][array_key_last($response['body']['requests'])]['value']);