Skip to content

Commit 6e6d145

Browse files
authored
tests: pipe.t: increase proc:write() timeout to 300ms for stability and changed the ngx.say to ngx.log for the error logging since the test is running a timer. (openresty#326)
1 parent 9d5206a commit 6e6d145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/pipe-stdin.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,13 @@ local proc = ngx_pipe.spawn({"bash"})
463463
464464
-- make writers blocked later
465465
local data = ("1234"):rep(2048)
466-
proc:set_timeouts(100)
466+
proc:set_timeouts(300)
467467
local total = 0
468468
local step = #data
469469
while true do
470470
local data, err = proc:write(data)
471471
if not data then
472-
ngx.say(err)
472+
ngx.log(ngx.ERR, "proc write error: ", err)
473473
break
474474
end
475475

0 commit comments

Comments
 (0)