From 4b31d80ae2a330b901685430e453a2a4e61ab12b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 8 Nov 2022 17:15:10 +0000 Subject: [PATCH 1/2] Increase orchesrration version --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 737096f2..8778deba 100644 --- a/composer.lock +++ b/composer.lock @@ -343,16 +343,16 @@ }, { "name": "utopia-php/orchestration", - "version": "0.8.0", + "version": "0.8.1", "source": { "type": "git", "url": "https://github.com/utopia-php/orchestration.git", - "reference": "c7fe1fe9996cf621d538ae289d64a2dde7378079" + "reference": "711a51a9dec48438ee1dd3a160d81752fac39e44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/orchestration/zipball/c7fe1fe9996cf621d538ae289d64a2dde7378079", - "reference": "c7fe1fe9996cf621d538ae289d64a2dde7378079", + "url": "https://api.github.com/repos/utopia-php/orchestration/zipball/711a51a9dec48438ee1dd3a160d81752fac39e44", + "reference": "711a51a9dec48438ee1dd3a160d81752fac39e44", "shasum": "" }, "require": { @@ -386,9 +386,9 @@ ], "support": { "issues": "https://github.com/utopia-php/orchestration/issues", - "source": "https://github.com/utopia-php/orchestration/tree/0.8.0" + "source": "https://github.com/utopia-php/orchestration/tree/0.8.1" }, - "time": "2022-11-07T17:19:22+00:00" + "time": "2022-11-08T17:13:20+00:00" }, { "name": "utopia-php/pools", From fa4f4231d3b39a245ac34d46ea8a1ba96d145087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 8 Nov 2022 17:22:58 +0000 Subject: [PATCH 2/2] Remove duration tests --- tests/ExecutorTest.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/ExecutorTest.php b/tests/ExecutorTest.php index 851c5562..932dc114 100644 --- a/tests/ExecutorTest.php +++ b/tests/ExecutorTest.php @@ -98,7 +98,6 @@ public function testBuild(): array $this->assertIsString($response['body']['stderr']); $this->assertIsString($response['body']['stdout']); $this->assertIsFloat($response['body']['duration']); - $this->assertLessThan(5, $response['body']['duration']); $this->assertIsInt($response['body']['startTimeUnix']); $this->assertIsInt($response['body']['endTimeUnix']); @@ -167,7 +166,6 @@ public function testExecute(array $data): void $this->assertIsString($response['body']['stderr']); $this->assertEmpty($response['body']['stderr']); $this->assertIsFloat($response['body']['duration']); - $this->assertLessThan(0.5, $response['body']['duration']); $this->assertEquals('{"payload":"","variable":"","unicode":"Unicode magic: êä"}', $response['body']['response']); /** Execute on cold-started runtime */ @@ -193,8 +191,6 @@ public function testExecute(array $data): void ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertLessThan(10, $response['body']['duration']); - $this->assertGreaterThan(0.5, $response['body']['duration']); /** Delete runtime */ $response = $this->client->call(Client::METHOD_DELETE, '/runtimes/test-exec-coldstart', [], []);