shreemaan-abhishek commented on code in PR #12836:
URL: https://github.com/apache/apisix/pull/12836#discussion_r2644582513


##########
t/APISIX.pm:
##########
@@ -380,9 +380,9 @@ _EOC_
             location /exec_request {
                 content_by_lua_block {
                     local shell = require("resty.shell")
-                    local ok, stdout, stderr, reason, status = shell.run([[ 
$exec_snippet ]], $stdin, @{[$timeout*1000]}, $max_size)
+                    local ok, stdout, stderr, reason, status = shell.run([[ 
$exec_snippet ]], $stdin, @{[($timeout-1)*1000]}, $max_size)
                     if not ok then
-                        ngx.log(ngx.WARN, "failed to execute the script with 
status: " .. status .. ", reason: " .. reason .. ", stderr: " .. stderr)
+                        ngx.log(ngx.WARN, "failed to execute the script with 
status: " .. (status or "nil   ") .. ", reason: " .. (reason or "nil") .. ", 
stderr: " .. (stderr or "nil"))

Review Comment:
   Got it, I think we can add such test in the test suite itself where in it 
will verify itself?



-- 
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]

Reply via email to