hanqingwu commented on code in PR #10696:
URL: https://github.com/apache/apisix/pull/10696#discussion_r1435078299
##########
apisix/cli/ops.lua:
##########
@@ -916,10 +916,15 @@ local function stop(env)
end
+function sleep(n)
+ os.execute("sleep " .. tonumber(n))
+end
+
local function restart(env)
-- test configuration
test(env)
stop(env)
+ sleep(1)
Review Comment:
i have try to instead ngx.sleep , but i got a error
/usr/local/openresty//luajit/bin/luajit:
/usr/local/apisix/apisix/cli/ops.lua:930: attempt to index global 'ngx' (a nil
value)
stack traceback:
/usr/local/apisix/apisix/cli/ops.lua:930: in function
</usr/local/apisix/apisix/cli/ops.lua:925>
/usr/local/apisix/apisix/cli/ops.lua:980: in function 'execute'
/usr/local/apisix/apisix/cli/apisix.lua:40: in main chunk
[C]: at 0x00405290
can you tell me what should i do ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]