Skip to content

Commit

Permalink
Merge branch 'test/ci' of https://github.com/AlinsRan/apisix into tes…
Browse files Browse the repository at this point in the history
…t/ci
  • Loading branch information
AlinsRan committed Jan 22, 2024
2 parents 75e2e74 + 5d33a32 commit f989235
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions t/discovery/consul_dump.t
Original file line number Diff line number Diff line change
Expand Up @@ -492,19 +492,14 @@ discovery:
content_by_lua_block {
local json = require("toolkit.json")
local t = require("lib.test_admin")
for i = 1, 3 do
ngx.sleep(2)
local code, body, res = t.test('/v1/discovery/consul/show_dump_file',
ngx.HTTP_GET)
local entity = json.decode(res)
if entity.services and entity.services.service_a then
ngx.say(json.encode(entity.services))
return
end
end
ngx.sleep(2)
local code, body, res = t.test('/v1/discovery/consul/show_dump_file',
ngx.HTTP_GET)
local entity = json.decode(res)
ngx.say(json.encode(entity.services))
}
}
--- timeout: 8
--- timeout: 3
--- request
GET /t
--- response_body
Expand Down

0 comments on commit f989235

Please sign in to comment.