From 0a88cb84848ed6056f2e265be74ad69a71291902 Mon Sep 17 00:00:00 2001 From: Vinicius Mignot Date: Fri, 24 Jun 2022 11:27:58 -0300 Subject: [PATCH] tests(with_resty-events) increased sleeps --- t/with_resty-events/05-report_failure.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/with_resty-events/05-report_failure.t b/t/with_resty-events/05-report_failure.t index 9f50b217..f83c1412 100644 --- a/t/with_resty-events/05-report_failure.t +++ b/t/with_resty-events/05-report_failure.t @@ -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 }