Skip to content

Commit

Permalink
tests: fixed test cases for set_current_peer.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuizhuhaomeng committed Jul 1, 2024
1 parent b024e43 commit 1ea604b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions t/balancer-keepalive-localaddr.t
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ __DATA__
local ip = ngx.var.arg_ip or "127.0.0.1"
local port = ngx.var.arg_port or $TEST_NGINX_SERVER_SSL_PORT

local ok, err = b.set_current_peer(ip, port, nil, "test.com")
local ok, err = b.set_current_peer(ip, port, "test.com")
if not ok then
ngx.log(ngx.ERR, "failed to set current peer: ", err)
return
Expand Down Expand Up @@ -152,7 +152,7 @@ $/
local ip = ngx.var.arg_ip or "127.0.0.1"
local port = ngx.var.arg_port or $TEST_NGINX_SERVER_SSL_PORT

local ok, err = b.set_current_peer(ip, port, nil, "test.com")
local ok, err = b.set_current_peer(ip, port, "test.com")
if not ok then
ngx.log(ngx.ERR, "failed to set current peer: ", err)
return
Expand Down Expand Up @@ -205,7 +205,7 @@ $/
local ip = ngx.var.arg_ip or "127.0.0.1"
local port = ngx.var.arg_port or $TEST_NGINX_SERVER_SSL_PORT

local ok, err = b.set_current_peer(ip, port, nil, "test.com")
local ok, err = b.set_current_peer(ip, port, "test.com")
if not ok then
ngx.log(ngx.ERR, "failed to set current peer: ", err)
return
Expand Down Expand Up @@ -255,7 +255,7 @@ $/
local ip = ngx.var.arg_ip or "127.0.0.1"
local port = ngx.var.arg_port or $TEST_NGINX_SERVER_SSL_PORT

local ok, err = b.set_current_peer(ip, port, nil, "test.com")
local ok, err = b.set_current_peer(ip, port, "test.com")
if not ok then
ngx.log(ngx.ERR, "failed to set current peer: ", err)
return
Expand Down Expand Up @@ -313,7 +313,7 @@ $/
local ip = ngx.var.arg_ip or "127.0.0.1"
local port = ngx.var.arg_port or $TEST_NGINX_SERVER_SSL_PORT

local ok, err = b.set_current_peer(ip, port, nil, "test.com")
local ok, err = b.set_current_peer(ip, port, "test.com")
if not ok then
ngx.log(ngx.ERR, "failed to set current peer: ", err)
return
Expand Down Expand Up @@ -362,7 +362,7 @@ $/
local ip = ngx.var.arg_ip or "127.0.0.1"
local port = ngx.var.arg_port or $TEST_NGINX_SERVER_SSL_PORT

local ok, err = b.set_current_peer(ip, port, nil, "test.com")
local ok, err = b.set_current_peer(ip, port, "test.com")
if not ok then
ngx.log(ngx.ERR, "failed to set current peer: ", err)
return
Expand Down Expand Up @@ -411,7 +411,7 @@ $/
local ip = ngx.var.arg_ip or "127.0.0.1"
local port = ngx.var.arg_port or $TEST_NGINX_SERVER_SSL_PORT

local ok, err = b.set_current_peer(ip, port, nil, "test.com")
local ok, err = b.set_current_peer(ip, port, "test.com")
if not ok then
ngx.log(ngx.ERR, "failed to set current peer: ", err)
return
Expand Down

0 comments on commit 1ea604b

Please sign in to comment.