Skip to content

Commit

Permalink
test: make consul_kv stable (#3924)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander authored Mar 29, 2021
1 parent 86e168e commit 0c96ffd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions t/discovery/consul_kv.t
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ discovery:
read: 1000
wait: 60
weight: 1
fetch_interval: 5
fetch_interval: 1
keepalive: true
default_service:
host: "127.0.0.1"
Expand Down Expand Up @@ -438,7 +438,7 @@ upstreams:
local uri = "http://127.0.0.1:" .. ngx.var.server_port .. "/hello"
local httpc = http.new()
httpc:request_uri(uri, {method = "GET"})
ngx.sleep(9)
ngx.sleep(3)
local code, body, res = t.test('/v1/healthcheck',
ngx.HTTP_GET)
Expand All @@ -457,7 +457,6 @@ upstreams:
ngx.say(json.encode(res))
}
}
--- timeout: 12
--- request
GET /thc
--- response_body
Expand Down

0 comments on commit 0c96ffd

Please sign in to comment.