Skip to content

Commit

Permalink
Increase guzzle timeout when running tests (#485)
Browse files Browse the repository at this point in the history
* increase guzzle timeout when running tests

* catch correct exception
  • Loading branch information
Boy132 authored Jul 20, 2024
1 parent 56b4938 commit 56484a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
DB_HOST: 127.0.0.1
DB_DATABASE: testing
DB_USERNAME: root
GUZZLE_TIMEOUT: 60
GUZZLE_CONNECT_TIMEOUT: 60
steps:
- name: Code Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -113,6 +115,8 @@ jobs:
DB_HOST: 127.0.0.1
DB_DATABASE: testing
DB_USERNAME: root
GUZZLE_TIMEOUT: 60
GUZZLE_CONNECT_TIMEOUT: 60
steps:
- name: Code Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -173,6 +177,8 @@ jobs:
QUEUE_CONNECTION: sync
DB_CONNECTION: sqlite
DB_DATABASE: testing.sqlite
GUZZLE_TIMEOUT: 60
GUZZLE_CONNECT_TIMEOUT: 60
steps:
- name: Code Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions app/Services/Helpers/SoftwareVersionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use GuzzleHttp\Client;
use Carbon\CarbonImmutable;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Support\Arr;
use Illuminate\Contracts\Cache\Repository as CacheRepository;

Expand Down Expand Up @@ -110,7 +110,7 @@ protected function cacheVersionData(): array
$wingsData = json_decode($response->getBody(), true);
$versionData['daemon'] = trim($wingsData['tag_name'], 'v');
}
} catch (ClientException $e) {
} catch (GuzzleException $e) {
}

$versionData['discord'] = 'https://pelican.dev/discord';
Expand Down

0 comments on commit 56484a2

Please sign in to comment.