ChuanFF commented on code in PR #12852:
URL: https://github.com/apache/apisix/pull/12852#discussion_r2659720579


##########
t/kubernetes/discovery/kubernetes3.t:
##########
@@ -242,10 +242,22 @@ _EOC_
             }
         }
 
-        location /t {
+        location /ready_check {
             content_by_lua_block {
-                ngx.sleep(2)
-                ngx.exit(200)
+                local http = require("resty.http")
+                local healthcheck_uri = "http://127.0.0.1:7085"; .. 
"/status/ready"
+                for i = 1, 4 do

Review Comment:
   APISIX takes time to load data from the Kubernetes API server. In scenarios 
with small amounts of data, it may complete in less than 1 second. The maximum 
wait time I set, 5 seconds, is solely to account for network fluctuations.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to