1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +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: adminer:
image: adminer image: adminer
container_name: appwrite-adminer
restart: always restart: always
ports: ports:
- 9505:8080 - 9505:8080

View file

@ -46,7 +46,7 @@ abstract class Scope extends TestCase
protected function getLastRequest():array protected function getLastRequest():array
{ {
sleep(5); sleep(10);
$resquest = json_decode(file_get_contents('http://request-catcher:5000/__last_request__'), true); $resquest = json_decode(file_get_contents('http://request-catcher:5000/__last_request__'), true);
$resquest['data'] = json_decode($resquest['data'], 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']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']);
// wait for timeout function to complete (sleep(5);) // wait for timeout function to complete (sleep(5);)
sleep(20); sleep(10);
$webhook = $this->getLastRequest(); $webhook = $this->getLastRequest();
$function = $this->client->call(Client::METHOD_GET, '/functions/'.$data['functionId'].'/executions', array_merge([ $function = $this->client->call(Client::METHOD_GET, '/functions/'.$data['functionId'].'/executions', array_merge([