提交 1d896303 编写于 作者: A antirez

Cluster test: 02 unit more reliable waiting for slave sync.

上级 d7a40258
...@@ -18,6 +18,14 @@ test "Instance #5 is a slave" { ...@@ -18,6 +18,14 @@ test "Instance #5 is a slave" {
assert {[RI 5 role] eq {slave}} assert {[RI 5 role] eq {slave}}
} }
test "Instance #5 synced with the master" {
wait_for_condition 1000 50 {
[RI 5 master_link_status] eq {up}
} else {
fail "Instance #5 master link status is not up"
}
}
set current_epoch [CI 1 cluster_current_epoch] set current_epoch [CI 1 cluster_current_epoch]
test "Killing one master node" { test "Killing one master node" {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册