Skip to content

Commit 40231ce

Browse files
Serpentiansergepetrenko
authored andcommitted
test: fix flakiness in gh_5568_read_only_reason
The test has two groups, in front of each of which, a cluster is created. Sometimes, it fails on the first test in every group: either ro_reason is explicitly checked and it equals to `orphan`, not nil, or we try to write to a still read-only instance and get the error, that it's orphan. The problem is the fact, that we don't wait until the connections are established in a cluster. Let's add waiting for full mesh in cluster creation. Closes tarantool/tarantool-qa#320 NO_CHANGELOG=test fix NO_DOC=test fix
1 parent 9402106 commit 40231ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/replication-luatest/gh_5568_read_only_reason_test.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ local function make_create_cluster(g) return function()
3535
g.cluster:add_server(g.master)
3636
g.cluster:add_server(g.replica)
3737
g.cluster:start()
38+
g.cluster:wait_for_fullmesh()
3839
end end
3940

4041
local function make_destroy_cluster(g) return function()

0 commit comments

Comments
 (0)