test {SET on the master should immediately propagate} {
r -1 set mykey bar
- if {$::valgrind} {after 2000}
- r 0 get mykey
- } {bar}
+
+ wait_for_condition 500 100 {
+ [r 0 get mykey] eq {bar}
+ } else {
+ fail "SET on master did not propagated on slave"
+ }
+ }
test {FLUSHALL should replicate} {
r -1 flushall