From 35bb80741f4b0c4f1594a5bd4a51fa0eb34e200a Mon Sep 17 00:00:00 2001 From: kodumbeats Date: Fri, 12 Mar 2021 06:22:18 -0500 Subject: [PATCH] Increase sleep time so execution can complete --- tests/e2e/Services/Functions/FunctionsCustomClientTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php index a405faf739..6d054a05a5 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php @@ -180,13 +180,13 @@ class FunctionsCustomClientTest extends Scope $this->assertEquals(201, $execution['headers']['status-code']); - sleep(10); + sleep(20); $executions = $this->client->call(Client::METHOD_GET, '/functions/'.$functionId.'/executions', [ 'content-type' => 'application/json', 'x-appwrite-project' => $projectId, 'x-appwrite-key' => $apikey, ]); - var_dump($executions); + var_dump($executions['body']['executions']); $this->assertEquals(200, $executions['headers']['status-code']); $this->assertStringContainsString('foobar', $executions['body']['executions'][0]['stdout']);