From 653dfb292b1eec606e8a8091248f0020d04ffe36 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 9 Dec 2021 19:53:37 +0400 Subject: [PATCH] feat: address review comments --- app/controllers/api/functions.php | 1 - tests/e2e/Services/Functions/FunctionsCustomServerTest.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 7d7d3537be..76c9ef47ba 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -133,7 +133,6 @@ App::get('/v1/functions/runtimes') ->inject('response') ->action(function ($response) { /** @var Appwrite\Utopia\Response $response */ - /** @var Utopia\Database\Database $dbForInternal */ $runtimes = Config::getParam('runtimes'); diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index e8541a2c54..c2452c08bd 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -805,7 +805,7 @@ class FunctionsCustomServerTest extends Scope ], $this->getHeaders())); $this->assertEquals(200, $runtimes['headers']['status-code']); - $this->assertEquals(12, $runtimes['body']['sum']); + $this->assertGreaterThan(0, $runtimes['body']['sum']); $runtime = $runtimes['body']['runtimes'][0];