diff --git a/.github/workflows/build_and_test_with_resty_events.yml b/.github/workflows/build_and_test_with_resty_events.yml index cb7abf0..fc65c46 100644 --- a/.github/workflows/build_and_test_with_resty_events.yml +++ b/.github/workflows/build_and_test_with_resty_events.yml @@ -147,4 +147,4 @@ jobs: run: | eval `luarocks path` eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib) - TEST_NGINX_RANDOMIZE=1 prove -I. -r t/with_resty-events + TEST_NGINX_TIMEOUT=4 TEST_NGINX_RANDOMIZE=1 prove -I. -r t/with_resty-events diff --git a/.github/workflows/build_and_test_with_worker_events.yml b/.github/workflows/build_and_test_with_worker_events.yml index 047bfa4..73067ac 100644 --- a/.github/workflows/build_and_test_with_worker_events.yml +++ b/.github/workflows/build_and_test_with_worker_events.yml @@ -72,4 +72,4 @@ jobs: run: | eval `luarocks path` eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib) - TEST_NGINX_RANDOMIZE=1 prove -I. -r t/with_worker-events + TEST_NGINX_TIMEOUT=4 TEST_NGINX_RANDOMIZE=1 prove -I. -r t/with_worker-events diff --git a/t/with_resty-events/11-clear.t b/t/with_resty-events/11-clear.t index aa448ee..c2b436e 100644 --- a/t/with_resty-events/11-clear.t +++ b/t/with_resty-events/11-clear.t @@ -339,12 +339,14 @@ target not found checker1:add_target("127.0.0.1", 10001, nil, true) checker1:add_target("127.0.0.1", 10002, nil, true) checker1:add_target("127.0.0.1", 10003, nil, true) + ngx.sleep(0.2) ngx.say(checker1:get_target_status("127.0.0.1", 10002)) checker1:delayed_clear(0.2) local checker2 = healthcheck.new(config2) checker2:add_target("127.0.0.1", 10001, nil, true) checker2:add_target("127.0.0.1", 10002, nil, true) + ngx.sleep(0.2) ngx.say(checker2:get_target_status("127.0.0.1", 10002)) checker2:delayed_clear(0.2)