Commit 05c1f18d authored by antirez's avatar antirez
Browse files

Fix integration test NOREPLICAS error time dependent false positive.

parent 4acd6973
...@@ -2,9 +2,12 @@ start_server {tags {"repl"}} { ...@@ -2,9 +2,12 @@ start_server {tags {"repl"}} {
start_server {} { start_server {} {
test {First server should have role slave after SLAVEOF} { test {First server should have role slave after SLAVEOF} {
r -1 slaveof [srv 0 host] [srv 0 port] r -1 slaveof [srv 0 host] [srv 0 port]
after 1000 wait_for_condition 50 100 {
s -1 role [s -1 master_link_status] eq {up}
} {slave} } else {
fail "Replication not started."
}
}
test {If min-slaves-to-write is honored, write is accepted} { test {If min-slaves-to-write is honored, write is accepted} {
r config set min-slaves-to-write 1 r config set min-slaves-to-write 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment