Skip to content

Commit

Permalink
tests(iterate) increase timeout for sanity test
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Oct 20, 2016
1 parent d51e5fb commit c749b5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions t/06-cluster.t
Original file line number Diff line number Diff line change
Expand Up @@ -1120,9 +1120,7 @@ can try peer 255.255.255.253: false
location /t {
content_by_lua_block {
local Cluster = require 'resty.cassandra.cluster'
local cluster, err = Cluster.new {
timeout_connect = 100
}
local cluster, err = Cluster.new()
if not cluster then
ngx.log(ngx.ERR, err)
return
Expand Down Expand Up @@ -1173,8 +1171,8 @@ can try peer 255.255.255.253: false
for i = 1, #peers do
local ok, err = cluster:can_try_peer(peers[i].host)
if err then
ngx.log(ngx.ERR, 'error in can_try_peer ', peers[i].host..': ', err)
return
ngx.log(ngx.ERR, 'error in can_try_peer ', peers[i].host..': ', err)
return
end
ngx.say(peers[i].host, ' is back up: ', ok)
end
Expand Down
2 changes: 1 addition & 1 deletion t/12-iterate.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ run_tests();
__DATA__

=== TEST 1: cluster.iterate() sanity
--- timeout: 30
--- timeout: 45
--- http_config eval
qq{
$::HttpConfig
Expand Down

0 comments on commit c749b5d

Please sign in to comment.