regression test
This commit is contained in:
parent
6f7b66fc7d
commit
8f5fa78e1a
2 changed files with 40 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ local function get_balancer()
|
|||
|
||||
balancer = balancers[alternative_backend_name]
|
||||
end
|
||||
|
||||
|
||||
ngx.ctx.balancer = balancer
|
||||
|
||||
return balancer
|
||||
|
|
@ -266,6 +266,7 @@ if _TEST then
|
|||
_M.get_implementation = get_implementation
|
||||
_M.sync_backend = sync_backend
|
||||
_M.route_to_alternative_balancer = route_to_alternative_balancer
|
||||
_M.get_balancer = get_balancer
|
||||
end
|
||||
|
||||
return _M
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue