From d3d6514cc9e9036ea0255c6394155b5e49e84120 Mon Sep 17 00:00:00 2001 From: dormando Date: Thu, 9 Jan 2025 16:31:59 -0800 Subject: [PATCH] fix sleep tests --- t/proxyrctxtimeout.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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