Skip to content

Commit

Permalink
tests(*): reduce sleep time a bit to avoid timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
windmgc committed May 10, 2024
1 parent 5996cb7 commit b97177d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/with_resty-events/19-timer.t
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ qq{
}
})
local ok, err = checker:add_target("127.0.0.1", 2130, nil, true)
ngx.sleep(4) -- wait for some time to let the checks run
ngx.sleep(3) -- wait for some time to let the checks run
-- There should be no more than 3 timers running atm, but
-- add a few spaces for worker events
ngx.say(tonumber(ngx.timer.running_count()) <= 5)
Expand Down
2 changes: 1 addition & 1 deletion t/with_worker-events/19-timer.t
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ qq{
}
})
local ok, err = checker:add_target("127.0.0.1", 2130, nil, true)
ngx.sleep(4) -- wait for some time to let the checks run
ngx.sleep(3) -- wait for some time to let the checks run
-- There should be no more than 3 timers running atm, but
-- add a few spaces for worker events
ngx.say(tonumber(ngx.timer.running_count()) <= 5)
Expand Down

0 comments on commit b97177d

Please sign in to comment.