Skip to content

Commit

Permalink
fix healthcheck case
Browse files Browse the repository at this point in the history
  • Loading branch information
bzp2010 committed Dec 6, 2023
1 parent 2cc1fbc commit ee50b1a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions t/node/healthcheck-ipv6.t
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ qr/^.*?\[error\](?!.*process exiting).*/
--- config
location /t {
content_by_lua_block {
ngx.sleep(3) -- wait for new workers replacement to complete
local http = require "resty.http"
local uri = "http://127.0.0.1:" .. ngx.var.server_port
.. "/server_port"
Expand Down
1 change: 1 addition & 0 deletions t/node/healthcheck-multiple-worker.t
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ qr/^.*?\[error\](?!.*process exiting).*/
location /t {
content_by_lua_block {
ngx.sleep(3) -- wait for new workers replacement to complete

local http = require "resty.http"
local uri = "http://127.0.0.1:" .. ngx.var.server_port
.. "/server_port"
Expand Down
4 changes: 3 additions & 1 deletion t/node/healthcheck-passive.t
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ passed
--- config
location /t {
content_by_lua_block {
ngx.sleep(1) -- wait for sync
ngx.sleep(3) -- wait for sync

local json_sort = require("toolkit.json")
local http = require("resty.http")
Expand Down Expand Up @@ -304,6 +304,8 @@ enabled healthcheck passive
--- config
location /t {
content_by_lua_block {
ngx.sleep(3) -- wait for sync

local t = require("lib.test_admin").test
local json_sort = require("toolkit.json")
local http = require("resty.http")
Expand Down

0 comments on commit ee50b1a

Please sign in to comment.