This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 837f4d9 test: make node/priority-balancer/sanity.t stable (#3816)
837f4d9 is described below
commit 837f4d9a6db6abb6a5ba9b29f54cbbe440c32fbd
Author: 罗泽轩 <[email protected]>
AuthorDate: Fri Mar 12 18:06:32 2021 +0800
test: make node/priority-balancer/sanity.t stable (#3816)
---
t/node/priority-balancer/sanity.t | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/t/node/priority-balancer/sanity.t
b/t/node/priority-balancer/sanity.t
index aeb9735..b027041 100644
--- a/t/node/priority-balancer/sanity.t
+++ b/t/node/priority-balancer/sanity.t
@@ -199,6 +199,8 @@ upstreams:
for i = 1, 3 do
local th = assert(ngx.thread.spawn(function(i)
local httpc = http.new()
+ -- the retry can be happened before starting the new
request
+ -- so we exclude all the first tries from the expected log
local res, err = httpc:request_uri(uri..i, {method =
"GET"})
if not res then
ngx.log(ngx.ERR, err)
@@ -217,11 +219,8 @@ GET /t
--- error_log
connect() failed
--- grep_error_log eval
-qr/proxy request to \S+ while connecting to upstream/
+qr/proxy request to \S+:1980 while connecting to upstream/
--- grep_error_log_out
-proxy request to 127.0.0.1:1979 while connecting to upstream
-proxy request to 127.0.0.1:1979 while connecting to upstream
-proxy request to 127.0.0.1:1979 while connecting to upstream
proxy request to 127.0.0.1:1980 while connecting to upstream
proxy request to 0.0.0.0:1980 while connecting to upstream
proxy request to 127.0.0.1:1980 while connecting to upstream