Skip to content

Commit

Permalink
fix sleep tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dormando committed Jan 10, 2025
1 parent 285e2e4 commit d3d6514
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions t/proxyrctxtimeout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d3d6514

Please sign in to comment.