test: make ci stable (#3413)

This commit is contained in:
罗泽轩 2021-01-26 00:01:48 +08:00 committed by GitHub
parent c90f0dcfb4
commit 8439c8d98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ location /t {
content_by_lua_block {
local core = require "apisix.core"
local config_util = require("apisix.core.config_util")
ngx.sleep(0.1) -- make sure the sync happened when admin starts is already finished
ngx.sleep(0.5) -- make sure the sync happened when admin starts is already finished
local before_reload = true
local plugins_conf, err

View File

@ -209,6 +209,7 @@ create new checker: table: 0x
ngx.say(body)
return
end
ngx.sleep(0.5) -- wait for routes delete event synced
code, _, body = t('/apisix/admin/upstreams/stopchecker', "DELETE")