Permalink
Browse files

regression test for bug 593 added

  • Loading branch information...
antirez committed Sep 12, 2011
1 parent b10913b commit 00c7f312cc696ac8b93c155eaa54be117a4da02e
Showing with 14 additions and 0 deletions.
  1. +14 −0 tests/unit/type/list.tcl
View
@@ -728,4 +728,18 @@ start_server {
assert_equal 3 [r llen myotherlist]
}
}
+
+ test "Regression for bug 593 - chaining BRPOPLPUSH with other blocking cmds" {
+ set rd1 [redis_deferring_client]
+ set rd2 [redis_deferring_client]
+
+ $rd1 brpoplpush a b 0
+ $rd1 brpoplpush a b 0
+ $rd2 brpoplpush b c 0
+ after 1000
+ r lpush a data
+ $rd1 close
+ $rd2 close
+ r ping
+ } {PONG}
}

0 comments on commit 00c7f31

Please sign in to comment.