summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-02-11 10:45:01 +0100
committerantirez <antirez@gmail.com>2015-02-11 10:45:01 +0100
commit49f11f2e78c245ca0b789ee43369b05e9305cbe7 (patch)
tree11b067febba52272cb08b7a40e0afaa8b741a487
parent616bca993e9e9247331792762d295012f663871c (diff)
downloadredis-dictc.tar.gz
SPOP replication tests.dictc
-rw-r--r--tests/integration/replication-4.tcl19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/integration/replication-4.tcl b/tests/integration/replication-4.tcl
index 6db9ffe2b..3af2e921d 100644
--- a/tests/integration/replication-4.tcl
+++ b/tests/integration/replication-4.tcl
@@ -132,5 +132,24 @@ start_server {tags {"repl"}} {
}
assert {[$master dbsize] > 0}
}
+
+ test {Replication of SPOP command -- alsoPropagate() API} {
+ $master del myset
+ set size [randomInt 100]
+ set content {}
+ for {set j 0} {$j < $size} {incr j} {
+ lappend content [randomValue]
+ }
+ $master sadd myset {*}$content
+
+ set count [randomInt 100]
+ set result [$master spop myset $count]
+
+ wait_for_condition 50 100 {
+ [$master debug digest] eq [$slave debug digest]
+ } else {
+ fail "SPOP replication inconsistency"
+ }
+ }
}
}