From 1bda8546a6999a853da25a70185f8a818a846de1 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Mon, 26 Apr 2021 14:06:37 +0200 Subject: [PATCH] tests: debug travis --- docker-compose.yml | 1 + tests/e2e/Scopes/Scope.php | 2 +- tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d015ea010..b1be2f3ce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -466,6 +466,7 @@ services: adminer: image: adminer + container_name: appwrite-adminer restart: always ports: - 9505:8080 diff --git a/tests/e2e/Scopes/Scope.php b/tests/e2e/Scopes/Scope.php index 64332a3e6..0d184d185 100644 --- a/tests/e2e/Scopes/Scope.php +++ b/tests/e2e/Scopes/Scope.php @@ -46,7 +46,7 @@ abstract class Scope extends TestCase protected function getLastRequest():array { - sleep(5); + sleep(10); $resquest = json_decode(file_get_contents('http://request-catcher:5000/__last_request__'), true); $resquest['data'] = json_decode($resquest['data'], true); diff --git a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php index ffe90fd12..eae78e513 100644 --- a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php +++ b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php @@ -472,7 +472,7 @@ class WebhooksCustomServerTest extends Scope $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); // wait for timeout function to complete (sleep(5);) - sleep(20); + sleep(10); $webhook = $this->getLastRequest(); $function = $this->client->call(Client::METHOD_GET, '/functions/'.$data['functionId'].'/executions', array_merge([