Skip to content

Commit

Permalink
ci(end to end): Increase LAPI timeout for AppSec timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Oct 4, 2024
1 parent a22292f commit c67a525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,8 @@ jobs:
- name: Run "AppSec with timeout (captcha fallback)" test
run: |
# Add delay
ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 1000ms
ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 500ms
cd ${{ github.workspace }}/${{env.EXTENSION_PATH}}
# Remove display error
sed -i 's/\x27display_errors\x27 => true/\x27display_errors\x27 => false/g' scripts/settings.php
cat scripts/settings.php
cd ${{ github.workspace }}/${{env.EXTENSION_PATH}}/tests/end-to-end/
./__scripts__/run-tests.sh ci "./__tests__/8-appsec-timeout-captcha.js"
Expand Down
4 changes: 2 additions & 2 deletions tests/end-to-end/settings/base.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ return [
'api_url' => 'https://crowdsec:8080',
'appsec_url' => 'http://crowdsec:7422',
'api_key' => 'REPLACE_API_KEY',
'api_timeout' => 1,
'api_connect_timeout' => 10,
'api_timeout' => 10,
'api_connect_timeout' => 5,
'appsec_timeout_ms' => Constants::APPSEC_TIMEOUT_MS,
'appsec_connect_timeout' => Constants::APPSEC_CONNECT_TIMEOUT_MS,
'use_curl' => false,
Expand Down

0 comments on commit c67a525

Please sign in to comment.