mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-04 21:17:36 +08:00
test: make plugin/log-rotate2.t stable (#6654)
This commit is contained in:
parent
feb55d348e
commit
6bb9feac82
1
t/plugin/log-rotate2.t
vendored
1
t/plugin/log-rotate2.t
vendored
@ -155,6 +155,7 @@ plugin_attr:
|
||||
--- config
|
||||
location /t {
|
||||
content_by_lua_block {
|
||||
ngx.sleep(0.1)
|
||||
local log_file = ngx.config.prefix() .. "logs/error.log"
|
||||
local file = io.open(log_file, "r")
|
||||
local log = file:read("*a")
|
||||
|
Loading…
Reference in New Issue
Block a user