1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

tests: debug travis

This commit is contained in:
Torsten Dittmann 2021-04-26 16:57:21 +02:00
parent e7fc22e003
commit 3a9b6e2e76
4 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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();

View file

@ -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);

View file

@ -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',