Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Commit

Permalink
regression test for bug 593 added
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Sep 12, 2011
1 parent b10913b commit 00c7f31
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/unit/type/list.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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.