From ad935634ac951e25225e74ed6def43ec163b0f3a Mon Sep 17 00:00:00 2001 From: spacewander Date: Mon, 27 Sep 2021 12:02:36 +0800 Subject: [PATCH] chore: upgrade lua-resty-balancer to 0.04 And ensure the test is stable Signed-off-by: spacewander --- rockspec/apisix-master-0.rockspec | 2 +- t/node/priority-balancer/sanity.t | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rockspec/apisix-master-0.rockspec b/rockspec/apisix-master-0.rockspec index 79a096696e97..354ebfe857b4 100644 --- a/rockspec/apisix-master-0.rockspec +++ b/rockspec/apisix-master-0.rockspec @@ -36,7 +36,7 @@ dependencies = { "lua-resty-template = 2.0", "lua-resty-etcd = 1.5.4", "api7-lua-resty-http = 0.2.0", - "lua-resty-balancer = 0.02rc5", + "lua-resty-balancer = 0.04", "lua-resty-ngxvar = 0.5.2", "lua-resty-jit-uuid = 0.0.7", "lua-resty-healthcheck-api7 = 2.2.0", diff --git a/t/node/priority-balancer/sanity.t b/t/node/priority-balancer/sanity.t index b027041e5525..2c4b1f6573cb 100644 --- a/t/node/priority-balancer/sanity.t +++ b/t/node/priority-balancer/sanity.t @@ -236,7 +236,7 @@ upstreams: nodes: - host: 127.0.0.1 port: 1979 - weight: 2 + weight: 1000 priority: 1 - host: 127.0.0.2 port: 1979 @@ -244,7 +244,7 @@ upstreams: priority: 1 - host: 127.0.0.3 port: 1979 - weight: 2 + weight: 1000 priority: -1 - host: 127.0.0.4 port: 1979