[Tarantool-patches] [PATCH 1/2] test: fix a typo in election_basic

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Sat Nov 7 02:46:32 MSK 2020


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)



More information about the Tarantool-patches mailing list