From ccb89bec8a2e92e38d24ff79f8a5a67f8117de66 Mon Sep 17 00:00:00 2001 From: Georgy Moiseev Date: Tue, 26 Mar 2024 18:17:43 +0300 Subject: [PATCH] test: increase bootstrap wait timeouts 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 --- test/helper.lua | 6 +++--- test/tarantool3_helpers/cluster.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/helper.lua b/test/helper.lua index 844c4369..19c74a81 100644 --- a/test/helper.lua +++ b/test/helper.lua @@ -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 @@ -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}, @@ -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 diff --git a/test/tarantool3_helpers/cluster.lua b/test/tarantool3_helpers/cluster.lua index f365f766..c4b3c723 100644 --- a/test/tarantool3_helpers/cluster.lua +++ b/test/tarantool3_helpers/cluster.lua @@ -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},