1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

reduce timeouts

This commit is contained in:
Torsten Dittmann 2021-10-22 18:19:02 +02:00
parent a89e892b3d
commit c8036ffc32
3 changed files with 4 additions and 5 deletions

View file

@ -26,7 +26,7 @@ jobs:
echo "_APP_FUNCTIONS_RUNTIMES=php-8.0" >> .env
docker pull composer:2.0
docker pull php:8.0-cli-alpine
docker compose build
docker compose build --progress=plain
docker compose up -d
sleep 10
- name: Doctor

View file

@ -156,7 +156,6 @@ class Client
*/
public function call(string $method, string $path = '', array $headers = [], array $params = [])
{
usleep(50000);
$headers = array_merge($this->headers, $headers);
$ch = curl_init($this->endpoint . $path . (($method == self::METHOD_GET && !empty($params)) ? '?' . http_build_query($params) : ''));
$responseHeaders = [];

View file

@ -33,8 +33,8 @@ abstract class Scope extends TestCase
protected function getLastEmail():array
{
sleep(10);
sleep(5);
$emails = json_decode(file_get_contents('http://maildev:1080/email'), true);
if ($emails && is_array($emails)) {
@ -46,7 +46,7 @@ abstract class Scope extends TestCase
protected function getLastRequest():array
{
sleep(5);
sleep(1);
$resquest = json_decode(file_get_contents('http://request-catcher:5000/__last_request__'), true);
$resquest['data'] = json_decode($resquest['data'], true);