From 7551e23716dbedb3561a5e5e4c590247f6b4e50d Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 12 Sep 2011 10:53:49 +0200 Subject: [PATCH] regression test for bug 593 added --- tests/unit/type/list.tcl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/unit/type/list.tcl b/tests/unit/type/list.tcl index ff178db4..970e3ee7 100644 --- a/tests/unit/type/list.tcl +++ b/tests/unit/type/list.tcl @@ -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} } -- GitLab