Skip to content
Snippets Groups Projects
Verified Commit a509c703 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

test: try sending raft_join request to a follower

parent 325c18a9
No related branches found
No related tags found
1 merge request!92test: try sending raft_join request to a follower
Pipeline #4543 passed
......@@ -9,6 +9,7 @@ from conftest import (
eprint,
Cluster,
Instance,
TarantoolError,
)
......@@ -63,3 +64,12 @@ def test_concurrency(cluster2: Cluster):
assert ret2["instance_id"] == "fake-2"
# Make sure the batching works as expected
assert ret1["commit_index"] == ret2["commit_index"]
def test_request_follower(cluster2: Cluster):
_, i2 = cluster2.instances
i2.assert_raft_status("Follower")
with pytest.raises(TarantoolError) as e:
fake_join(i2, "fake-0", timeout=1)
assert e.value.args == ("ER_PROC_C", "not a leader")
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