Skip to content

Commit c67a525

Browse files
ci(end to end): Increase LAPI timeout for AppSec timeout test
1 parent a22292f commit c67a525

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/test-suite.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,8 @@ jobs:
490490
- name: Run "AppSec with timeout (captcha fallback)" test
491491
run: |
492492
# Add delay
493-
ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 1000ms
493+
ddev exec -s crowdsec tc qdisc add dev eth0 root netem delay 500ms
494494
cd ${{ github.workspace }}/${{env.EXTENSION_PATH}}
495-
# Remove display error
496-
sed -i 's/\x27display_errors\x27 => true/\x27display_errors\x27 => false/g' scripts/settings.php
497495
cat scripts/settings.php
498496
cd ${{ github.workspace }}/${{env.EXTENSION_PATH}}/tests/end-to-end/
499497
./__scripts__/run-tests.sh ci "./__tests__/8-appsec-timeout-captcha.js"

tests/end-to-end/settings/base.php.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ return [
88
'api_url' => 'https://crowdsec:8080',
99
'appsec_url' => 'http://crowdsec:7422',
1010
'api_key' => 'REPLACE_API_KEY',
11-
'api_timeout' => 1,
12-
'api_connect_timeout' => 10,
11+
'api_timeout' => 10,
12+
'api_connect_timeout' => 5,
1313
'appsec_timeout_ms' => Constants::APPSEC_TIMEOUT_MS,
1414
'appsec_connect_timeout' => Constants::APPSEC_CONNECT_TIMEOUT_MS,
1515
'use_curl' => false,

0 commit comments

Comments
 (0)