]> git.saurik.com Git - redis.git/blobdiff - tests/integration/replication.tcl
A reimplementation of blocking operation internals.
[redis.git] / tests / integration / replication.tcl
index 18e639d41f6bab6b40c696143211645f0896db07..da94b088065034797e010f87dfe7b5f3e737cd8f 100644 (file)
@@ -61,9 +61,13 @@ start_server {tags {"repl"}} {
         
         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