From 27d88a421e310415d5cd816e26d4b646e2a79327 Mon Sep 17 00:00:00 2001 From: shimon Date: Mon, 1 Dec 2025 11:59:21 +0200 Subject: [PATCH] debug --- app/controllers/api/health.php | 2 +- tests/e2e/Services/Health/HealthCustomServerTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index 81f7eee02d..3fbd9d6443 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -134,7 +134,7 @@ App::get('/v1/health/db') if (!empty($failures)) { var_dump($failures); - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures)); + //throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures)); } $response->dynamic(new Document([ diff --git a/tests/e2e/Services/Health/HealthCustomServerTest.php b/tests/e2e/Services/Health/HealthCustomServerTest.php index 63516f624d..1164e015a7 100644 --- a/tests/e2e/Services/Health/HealthCustomServerTest.php +++ b/tests/e2e/Services/Health/HealthCustomServerTest.php @@ -40,6 +40,7 @@ class HealthCustomServerTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); + var_dump($response['body']); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals('pass', $response['body']['statuses'][0]['status']); $this->assertIsInt($response['body']['statuses'][0]['ping']);