@@ -140,13 +140,6 @@ done
140140 location /t {
141141 content_by_lua_block {
142142 local etcd, err = new_etcd(true, nil, nil, "127.0.0.1")
143- local res, err = etcd:set("/test", "abc")
144- check_res(res, err)
145-
146- ngx.timer.at(0.1, function ()
147- etcd:set("/test", "bcd3")
148- end)
149-
150143 local cur_time = ngx.now()
151144 local body_chunk_fun, err = etcd:watch("/test", {timeout = 0.5})
152145 if not body_chunk_fun then
158151 }
159152 }
160153--- response_body
161- err : certificate host mismatch
154+ failed to watch: https://127.0.0.1:12379 : certificate host mismatch
162155
163156
164157
@@ -167,21 +160,13 @@ err: certificate host mismatch
167160 location /t {
168161 content_by_lua_block {
169162 local etcd, err = new_etcd(true, nil, nil, "admin.apisix.dev")
170- local res, err = etcd:set("/test", "abc")
171- check_res(res, err)
172-
173- ngx.timer.at(0.1, function ()
174- etcd:set("/test", "bcd3")
175- end)
176-
177163 local cur_time = ngx.now()
178164 local body_chunk_fun, err = etcd:watch("/test", {timeout = 0.5})
179165 if not body_chunk_fun then
180166 ngx.say("failed to watch: ", err)
181167 else
182168 ngx.say("done")
183169 end
184-
185170 }
186171 }
187172--- response_body
0 commit comments