Skip to content
Snippets Groups Projects
Commit 1af6ad13 authored by Sergey Ostanevich's avatar Sergey Ostanevich Committed by Serge Petrenko
Browse files

test: fix for gh_6036 test to avoid flakiness

Promotion of a leader in the test requires previous leader state
arrived to all replicas. Inconsistency may lead to promotion failure,
which is correct from the raft point of view, but not expected by the
test.

Closes #7785

NO_DOC=test
NO_CHANGELOG=test

(cherry picked from commit 895cb2d2)
parent 2273eabd
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@ g.before_all(function(cg)
})
cg.cluster:start()
cg.r1:wait_for_vclock({[1] = 3})
cg.r2:wait_for_vclock({[1] = 3})
cg.r1:exec(function()
box.ctl.promote()
box.ctl.wait_rw()
......@@ -70,6 +72,7 @@ g.before_test("test_qsync_order", function(cg)
end)
g.test_qsync_order = function(cg)
cg.r3:wait_for_vclock_of(cg.r1)
cg.r3:exec(function()
box.ctl.promote()
box.ctl.wait_rw()
......
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