diff options
author | antirez <antirez@gmail.com> | 2015-02-11 10:45:01 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-02-11 10:52:28 +0100 |
commit | a1d9ec0d448b3f0d41eff9c8ba48af3c47976ef2 (patch) | |
tree | 0d8a19e72b8a1b07edfe61a0fbc0064e46a32446 | |
parent | dffbbb5a78154d42395284e9b8bf33b236a45599 (diff) | |
download | redis-a1d9ec0d448b3f0d41eff9c8ba48af3c47976ef2.tar.gz |
SPOP replication tests.
-rw-r--r-- | tests/integration/replication-4.tcl | 19 |
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" + } + } } } |