Skip to content

Commit

Permalink
test: increase bootstrap wait timeouts
Browse files Browse the repository at this point in the history
Sometimes it is possible to get a vshard router with broken connection
to a storage. It seems that existing 5 seconds timeout does not allow
to reconnect to a storage, so we try to increase it.

Part of #415
  • Loading branch information
DifferentialOrange committed Apr 3, 2024
1 parent 314d796 commit ccb89be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function helpers.box_cfg(opts)

if opts.wait_rw then
t.helpers.retrying(
{timeout = 3, delay = 0.1},
{timeout = 60, delay = 0.1},
t.assert_equals, box.info.ro, false
)
end
Expand Down Expand Up @@ -1021,7 +1021,7 @@ function helpers.wait_crud_is_ready_on_cluster(g, opts)
opts.storage_roles
)

local WAIT_TIMEOUT = 5
local WAIT_TIMEOUT = 60
local DELAY = 0.1
t.helpers.retrying(
{timeout = WAIT_TIMEOUT, delay = DELAY},
Expand Down Expand Up @@ -1368,7 +1368,7 @@ function helpers.is_func_flag(flag)
end

function helpers.wait_func_flag(flag)
local TIMEOUT = 5
local TIMEOUT = 60
local start = clock.monotonic()

while clock.monotonic() - start < TIMEOUT do
Expand Down
2 changes: 1 addition & 1 deletion test/tarantool3_helpers/cluster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function Cluster:wait_crud_is_ready_on_cluster()
local router = self:get_router()
local storages_in_topology = self:count_storages()

local WAIT_TIMEOUT = 5
local WAIT_TIMEOUT = 60
local DELAY = 0.1
t.helpers.retrying(
{timeout = WAIT_TIMEOUT, delay = DELAY},
Expand Down

0 comments on commit ccb89be

Please sign in to comment.