test: use smaller port numbers to reduce the chance of conflicting with local ports.
This commit is contained in:
Родитель
2079446fae
Коммит
870b9a7f16
|
@ -849,7 +849,7 @@ GET /t
|
|||
--- http_config eval
|
||||
"lua_package_path '$::HtmlDir/?.lua;./?.lua';
|
||||
server {
|
||||
listen 54123;
|
||||
listen 12354;
|
||||
|
||||
location = /t {
|
||||
echo 'args: \$args';
|
||||
|
@ -859,7 +859,7 @@ GET /t
|
|||
--- config
|
||||
location = /t {
|
||||
set $args "foo=1&bar=2";
|
||||
proxy_pass http://127.0.0.1:54123;
|
||||
proxy_pass http://127.0.0.1:12354;
|
||||
}
|
||||
|
||||
--- request
|
||||
|
|
|
@ -337,7 +337,7 @@ lua found 100 pending timers
|
|||
lua_shared_dict test_dict 1m;
|
||||
|
||||
server {
|
||||
listen 54123;
|
||||
listen 12355;
|
||||
location = /foo {
|
||||
echo 'foo';
|
||||
}
|
||||
|
@ -351,7 +351,7 @@ lua found 100 pending timers
|
|||
|
||||
-- Connect the socket
|
||||
local sock = ngx.socket.tcp()
|
||||
local ok,err = sock:connect("127.0.0.1", 54123)
|
||||
local ok,err = sock:connect("127.0.0.1", 12355)
|
||||
if not ok then
|
||||
ngx.log(ngx.ERR, err)
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче