summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-06-20 17:07:18 +0200
committerantirez <antirez@gmail.com>2011-06-20 17:19:36 +0200
commitc1c9d551da6dd534c8dae051a3a7e64bf7db6bfb (patch)
tree68c0cf84ab35135eb7203ab049787b37be259585 /tests/integration
parent634bae94fbc0427032be4d1fd68b29b7d03aecb7 (diff)
downloadredis-c1c9d551da6dd534c8dae051a3a7e64bf7db6bfb.tar.gz
Fix for bug 561 and other related problems
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/replication.tcl18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/integration/replication.tcl b/tests/integration/replication.tcl
index 892fae03b..227356b24 100644
--- a/tests/integration/replication.tcl
+++ b/tests/integration/replication.tcl
@@ -6,6 +6,24 @@ start_server {tags {"repl"}} {
s -1 role
} {slave}
+ test {BRPOPLPUSH replication, when blocking against empty list} {
+ set rd [redis_deferring_client]
+ $rd brpoplpush a b 5
+ r lpush a foo
+ after 1000
+ assert_equal [r debug digest] [r -1 debug digest]
+ }
+
+ test {BRPOPLPUSH replication, list exists} {
+ set rd [redis_deferring_client]
+ r lpush c 1
+ r lpush c 2
+ r lpush c 3
+ $rd brpoplpush c d 5
+ after 1000
+ assert_equal [r debug digest] [r -1 debug digest]
+ }
+
test {MASTER and SLAVE dataset should be identical after complex ops} {
createComplexDataset r 10000
after 500