Skip to content

Commit

Permalink
tests(with_resty-events) increased sleeps
Browse files Browse the repository at this point in the history
  • Loading branch information
locao committed Jun 24, 2022
1 parent 78ead9e commit 0a88cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/with_resty-events/05-report_failure.t
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ qq{
})
local ok, err = checker:add_target("127.0.0.1", 2117, nil, true)
local ok, err = checker:add_target("127.0.0.1", 2113, nil, true)
ngx.sleep(0.002)
ngx.sleep(0.01)
checker:report_failure("127.0.0.1", 2117, nil, "active")
checker:report_failure("127.0.0.1", 2113, nil, "passive")
checker:report_failure("127.0.0.1", 2117, nil, "active")
checker:report_failure("127.0.0.1", 2113, nil, "passive")
checker:report_failure("127.0.0.1", 2117, nil, "active")
checker:report_failure("127.0.0.1", 2113, nil, "passive")
ngx.sleep(0.002)
ngx.sleep(0.01)
ngx.say(checker:get_target_status("127.0.0.1", 2117, nil)) -- false
ngx.say(checker:get_target_status("127.0.0.1", 2113, nil)) -- false
}
Expand Down

0 comments on commit 0a88cb8

Please sign in to comment.