redict/tests
Matt Stancliff 33f943b4cd Fix blocking operations from missing new lists
Behrad Zari discovered [1] and Josiah reported [2]: if you block
and wait for a list to exist, but the list creates from
a non-push command, the blocked client never gets notified.

This commit adds notification of blocked clients into
the DB layer and away from individual commands.

Lists can be created by [LR]PUSH, SORT..STORE, RENAME, MOVE,
and RESTORE.  Previously, blocked client notifications were
only triggered by [LR]PUSH.  Your client would never get
notified if a list were created by SORT..STORE or RENAME or
a RESTORE, etc.

Blocked client notification now happens in one unified place:
  - dbAdd() triggers notification when adding a list to the DB

Two new tests are added that fail prior to this commit.

All test pass.

Fixes #1668

[1]: https://groups.google.com/forum/#!topic/redis-db/k4oWfMkN1NU
[2]: #1668
2014-05-21 09:52:52 -04:00
..
assets test-server: only listen to 127.0.0.1 2013-06-12 22:49:32 +02:00
cluster Cluster test: better failure detection test and framework improvements. 2014-05-19 15:26:19 +02:00
helpers Regression test for issue 417 (memory leak when replicating to DB with id >= 10) 2012-03-30 10:26:07 +02:00
integration Test: regression test for issue #1221. 2013-07-29 17:39:28 +02:00
sentinel Cluster / Sentinel test: instances count moved to run.tcl. 2014-04-29 16:17:15 +02:00
support cluster.tcl: fix redis links leak in refresh_nodes_map. 2014-05-14 09:10:03 +02:00
tmp minor fixes to the new test suite, html doc updated 2010-05-14 18:48:33 +02:00
unit Fix blocking operations from missing new lists 2014-05-21 09:52:52 -04:00
instances.tcl Cluster test: proper initialization at unit startup. 2014-05-19 11:24:15 +02:00
test_helper.tcl Initial HyperLogLog tests. 2014-04-03 22:16:05 +02:00