Skip to content

Commit

Permalink
e2e tests: increases socket timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Mar 21, 2023
1 parent 770717b commit fdde633
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions t/apicast-policy-3scale-batcher-blackbox.t
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ __DATA__
{
"name": "apicast.policy.3scale_batcher",
"configuration": {
"batch_report_seconds" : 1
"batch_report_seconds" : 10,
"auths_ttl": 30
}
},
{
Expand Down Expand Up @@ -139,6 +140,7 @@ __DATA__
}
]
}
--- timeout: 25s
--- test env
content_by_lua_block {
local function request(path)
Expand All @@ -163,7 +165,7 @@ content_by_lua_block {
request('/foo/bar')

request('/foo')
ngx.sleep(2)
ngx.sleep(15)
}
--- response_body
connected: 1
Expand Down
1 change: 1 addition & 0 deletions t/configuration-loading-filter-services-by-url.t
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ location /api/ {
echo 'yay, api backend';
}

--- timeout: 25s
--- backend
location /transactions/authrep.xml {
content_by_lua_block { ngx.exit(200) }
Expand Down
3 changes: 2 additions & 1 deletion t/configuration-loading-from-service-list.t
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ my $jwt = encode_jwt(payload => {
--- no_error_log
[error]
=== TEST 4: servide list filter with paginated proxy config list
=== TEST 4: service list filter with paginated proxy config list
This test is configured to provide 3 pages of proxy configs. On each page, there is only one service
which is valid according to the filter by service list. The test will do one request to each valid service.
--- env eval
Expand Down Expand Up @@ -287,6 +287,7 @@ location /api/ {
echo 'yay, api backend';
}
--- timeout: 25s
--- backend
location /transactions/authrep.xml {
content_by_lua_block { ngx.exit(200) }
Expand Down
1 change: 1 addition & 0 deletions t/configuration-loading-lazy.t
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ location /api/ {
echo 'yay, api backend';
}

--- timeout: 25s
--- backend
location /transactions/authrep.xml {
content_by_lua_block { ngx.exit(200) }
Expand Down
1 change: 1 addition & 0 deletions t/configuration-loading-with-service-version.t
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ location /transactions/authrep.xml {
content_by_lua_block { ngx.exit(200) }
}

--- timeout: 60s
--- pipelined_requests eval
["GET /?user_key=1","GET /?user_key=1","GET /?user_key=1","GET /?user_key=2"]
--- more_headers eval
Expand Down

0 comments on commit fdde633

Please sign in to comment.