Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
shreemaan-abhishek committed Jun 21, 2023
1 parent e19a466 commit b6acb16
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions t/xds-library/config_xds.t
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,17 @@ qr/can not load xDS library/
--- config
location /t {
content_by_lua_block {
-- wait for xds library sync data
ngx.sleep(1.5)
local core = require("apisix.core")
local version = ngx.shared["xds-config-version"]:get("version")
ngx.say(version)
local version
for i = 1, 5 do
version = ngx.shared["xds-config-version"]:get("version")
if version then
ngx.say(version)
break
end
-- wait for xds library sync data
ngx.sleep(1.5)
end
}
}
--- response_body eval
Expand Down

0 comments on commit b6acb16

Please sign in to comment.