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 Mar 26, 2024
1 parent ec24d5c commit 45b5282
Showing 1 changed file with 3 additions and 3 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

0 comments on commit 45b5282

Please sign in to comment.