This commit is contained in:
shimon 2025-12-01 11:59:21 +02:00
parent e4755c624f
commit 27d88a421e
2 changed files with 2 additions and 1 deletions

View file

@ -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([

View file

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