diff --git a/t/tnt/init.lua b/t/tnt/init.lua index ed85ef19..1e61bc86 100644 --- a/t/tnt/init.lua +++ b/t/tnt/init.lua @@ -76,14 +76,11 @@ local function tnt_cluster_prepare(cfg_args) cfg_args[snapdir_optname()] = dir cfg_args[logger_optname()] = fio.pathjoin(dir, 'tarantool.log') cfg_args['listen'] = bind_master - cfg_args['replication'] = {'replicator:password@' .. bind_replica, - 'replicator:password@' .. bind_master} + cfg_args['replication'] = {'replicator:password@' .. bind_master} if vinyl_name() then local vinyl_optname = vinyl_name() .. '_dir' cfg_args[vinyl_optname] = dir end - cfg_args['replication_connect_quorum'] = 1 - cfg_args['replication_connect_timeout'] = 0.01 box.cfg(cfg_args) -- Allow guest all operations. @@ -123,6 +120,12 @@ local function tnt_cluster_prepare(cfg_args) stderr = 'devnull', }) + box.cfg({replication = + {'replicator:password@' .. bind_replica, + 'replicator:password@' .. bind_master + } + }) + -- Wait for replica to connect. local id = (box.info.replication[1].uuid ~= box.info.uuid and 1) or 2 local attempts = 0