You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "nic-6443 (via GitHub)" <gi...@apache.org> on 2023/03/16 13:09:01 UTC

[GitHub] [apisix] nic-6443 commented on a diff in pull request #9077: fix(consumer): work if the etcd connection failed during starting

nic-6443 commented on code in PR #9077:
URL: https://github.com/apache/apisix/pull/9077#discussion_r1138634093


##########
t/node/consumer-plugin2.t:
##########
@@ -435,3 +435,35 @@ apikey: auth-jack
 {"message":"Your IP address is not allowed"}
 hello world
 hello world
+
+
+
+=== TEST 10: consumer should work if the etcd connection failed during starting
+--- extra_init_by_lua
+local etcd_apisix  = require("apisix.core.etcd")
+etcd_apisix.get_etcd_syncer = function ()
+    return nil, "", "ouch"
+end
+--- config
+    location /t {
+        content_by_lua_block {
+            local t = require("lib.test_admin").test

Review Comment:
   Unused local variable.



-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org