Skip to content
Snippets Groups Projects
Commit 455c6d18 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy
Browse files

test: fix a typo in election_basic

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
parent 03512e53
No related branches found
No related tags found
No related merge requests found
......@@ -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
| ---
| ...
......
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment