From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 36C2844643A for ; Sat, 7 Nov 2020 02:46:37 +0300 (MSK) From: Vladislav Shpilevoy Date: Sat, 7 Nov 2020 00:46:32 +0100 Message-Id: <91007b6ff6854cfbb49d83ecd9df172331c4cc99.1604706353.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 1/2] test: fix a typo in election_basic List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, sergepetrenko@tarantool.org The typo led to not resetting the election timeout to the default value. It was left 1000, and as a result the next election tests could work extremely long. Part of #5499 --- test/replication/election_basic.result | 2 +- test/replication/election_basic.test.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/replication/election_basic.result b/test/replication/election_basic.result index 03917c7e4..4d7d33f2b 100644 --- a/test/replication/election_basic.result +++ b/test/replication/election_basic.result @@ -6,7 +6,7 @@ test_run = require('test_run').new() -- gh-1146: Raft protocol for automated leader election. -- -old_election_timeout = box.cfg_election_timeout +old_election_timeout = box.cfg.election_timeout | --- | ... diff --git a/test/replication/election_basic.test.lua b/test/replication/election_basic.test.lua index 1b4bb8d27..821f73cea 100644 --- a/test/replication/election_basic.test.lua +++ b/test/replication/election_basic.test.lua @@ -3,7 +3,7 @@ test_run = require('test_run').new() -- gh-1146: Raft protocol for automated leader election. -- -old_election_timeout = box.cfg_election_timeout +old_election_timeout = box.cfg.election_timeout -- Election is turned off by default. assert(box.cfg.election_mode == 'off') -- 2.21.1 (Apple Git-122.3)