Skip to content

Commit c05bde9

Browse files
author
jiahao
committed
tests: t/188-*.t: use random port instead of 8090 port.
1 parent adb3f14 commit c05bde9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

t/188-balancer_keepalive_pool_max_retry.t

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ __DATA__
3535
if ngx.ctx.tries == 1 then
3636
balancer.set_more_tries(5)
3737
end
38-
38+
3939
local host = "127.0.0.1"
40-
local port = 8090;
40+
local port = $TEST_NGINX_RAND_PORT_1;
4141
4242
local ok, err = balancer.set_current_peer(host, port)
4343
if not ok then
@@ -56,9 +56,9 @@ __DATA__
5656
}
5757
5858
server {
59-
listen 0.0.0.0:8090;
59+
listen 127.0.0.1:$TEST_NGINX_RAND_PORT_1;
6060
location /hello {
61-
content_by_lua_block{
61+
content_by_lua_block{
6262
local request_counter = ngx.shared.request_counter
6363
local first_request = request_counter:get("first_request")
6464
if first_request == nil then
@@ -74,7 +74,7 @@ __DATA__
7474
location = /t {
7575
proxy_pass http://my_upstream;
7676
proxy_set_header Connection "keep-alive";
77-
77+
7878
rewrite_by_lua_block {
7979
ngx.req.set_uri("/hello")
8080
}

0 commit comments

Comments
 (0)