diff --git a/.travis.yml b/.travis.yml index 3572a9b647..29cea5a358 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,6 +42,7 @@ script: - docker-compose exec appwrite test --debug --testsuite webhooks - docker-compose exec appwrite test --debug --testsuite functions - docker-compose exec appwrite test --debug --testsuite services +- docker-compose logs appwrite-worker-webhooks deploy: - provider: script diff --git a/app/workers/webhooks.php b/app/workers/webhooks.php index 75cc54bf57..83d41222ad 100644 --- a/app/workers/webhooks.php +++ b/app/workers/webhooks.php @@ -39,6 +39,8 @@ class WebhooksV1 $event = $this->args['event'] ?? ''; $eventData = \json_encode($this->args['eventData']); + var_dump($event, $eventData = \json_encode($this->args['eventData'])); + // Webhook Authorization::disable(); diff --git a/tests/e2e/Scopes/Scope.php b/tests/e2e/Scopes/Scope.php index 0d184d185e..baa838311a 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(10); + sleep(4); $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 374d676d65..072c3cbc5c 100644 --- a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php +++ b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php @@ -453,7 +453,6 @@ class WebhooksCustomServerTest extends Scope /** * Test for SUCCESS */ - sleep(10); $execution = $this->client->call(Client::METHOD_POST, '/functions/'.$data['functionId'].'/executions', array_merge([ 'content-type' => 'application/json',