tests: debug travis
This commit is contained in:
parent
e7fc22e003
commit
3a9b6e2e76
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue