1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

tests: debug travis

This commit is contained in:
Torsten Dittmann 2021-04-26 14:06:37 +02:00
parent 038a93b107
commit 1bda8546a6
3 changed files with 3 additions and 2 deletions

View file

@ -466,6 +466,7 @@ services:
adminer:
image: adminer
container_name: appwrite-adminer
restart: always
ports:
- 9505:8080

View file

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

View file

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