diff --git a/t/proxyrctxtimeout.lua b/t/proxyrctxtimeout.lua index aa959e91e..7aad72038 100644 --- a/t/proxyrctxtimeout.lua +++ b/t/proxyrctxtimeout.lua @@ -152,8 +152,7 @@ function rctx_sleep(p) local subnear = fgsub:new_handle(p.z1) fgsub:ready({ n = "subsleep", f = function(rctx) return function(r) - print("SUB WAIT") - --rctx:sleep(0.5) + rctx:sleep(0.25) local nres = rctx:enqueue_and_wait(r, subnear) return nres end @@ -189,13 +188,12 @@ function rctx_sleep(p) local nres = rctx:result(near) return nres elseif k == "sleep/subwait" then - print("SUB WAIT") - local nres = rctx:endqueue_and_wait(r, subh) - print("SUB ETC") + local nres = rctx:enqueue_and_wait(r, subh) return nres elseif k == "sleep/subdoublewait" then + local nres = rctx:enqueue_and_wait(r, subh) rctx:sleep(0.5) - return rctx:endqueue_and_wait(r, subh) + return nres else print("BAD SLEEP KEY", k) end