This is an automated email from the ASF dual-hosted git repository.
nic-6443 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 62feab14a2 test(healthcheck): stop counting probes that land after the
threshold (#13834)
62feab14a2 is described below
commit 62feab14a2d2fc85eabdbac55214fbfedfb2e36f
Author: Nic <[email protected]>
AuthorDate: Mon Aug 17 14:27:33 2026 +0800
test(healthcheck): stop counting probes that land after the threshold
(#13834)
---
t/node/healthcheck.t | 4 ++--
t/node/healthcheck2.t | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/node/healthcheck.t b/t/node/healthcheck.t
index 5eba37c216..b01d840597 100644
--- a/t/node/healthcheck.t
+++ b/t/node/healthcheck.t
@@ -224,7 +224,7 @@ GET /t
--- response_body
[{"count":12,"port":"1980"}]
--- grep_error_log eval
-qr/\([^)]+\) unhealthy .* for '.*'/
+qr/\([^)]+\) unhealthy TCP increment \([12]\/2\) for '.*'/
--- grep_error_log_out
(upstream#/apisix/routes/1) unhealthy TCP increment (1/2) for
'foo.com(127.0.0.1:1970)'
(upstream#/apisix/routes/1) unhealthy TCP increment (2/2) for
'foo.com(127.0.0.1:1970)'
@@ -910,7 +910,7 @@ GET /t
--- response_body
[{"count":12,"port":"1980"}]
--- grep_error_log eval
-qr/\([^)]+\) unhealthy .* for '.*'/
+qr/\([^)]+\) unhealthy TCP increment \([12]\/2\) for '.*'/
--- grep_error_log_out
(upstream#/apisix/upstreams/1) unhealthy TCP increment (1/2) for
'foo.com(127.0.0.1:1970)'
(upstream#/apisix/upstreams/1) unhealthy TCP increment (2/2) for
'foo.com(127.0.0.1:1970)'
diff --git a/t/node/healthcheck2.t b/t/node/healthcheck2.t
index 8c5fef2313..9c9e51ee1a 100644
--- a/t/node/healthcheck2.t
+++ b/t/node/healthcheck2.t
@@ -138,7 +138,7 @@ routes:
--- response_body
[{"count":12,"port":"1980"}]
--- grep_error_log eval
-qr/\([^)]+\) unhealthy .* for '.*'/
+qr/\([^)]+\) unhealthy TCP increment \([12]\/2\) for '.*'/
--- grep_error_log_out
(upstream#/services/1) unhealthy TCP increment (1/2) for
'foo.com(127.0.0.1:1970)'
(upstream#/services/1) unhealthy TCP increment (2/2) for
'foo.com(127.0.0.1:1970)'
@@ -227,7 +227,7 @@ routes:
--- response_body
[{"count":12,"port":"1980"}]
--- grep_error_log eval
-qr/\([^)]+\) unhealthy .* for '.*'/
+qr/\([^)]+\) unhealthy TCP increment \([12]\/2\) for '.*'/
--- grep_error_log_out
(upstream#/routes/arr_1) unhealthy TCP increment (1/2) for
'foo.com(127.0.0.1:1970)'
(upstream#/routes/arr_1) unhealthy TCP increment (2/2) for
'foo.com(127.0.0.1:1970)'