redis/tests/unit
antirez 2039f1a38a UNSUBSCRIBE and PUNSUBSCRIBE: always provide a reply.
UNSUBSCRIBE and PUNSUBSCRIBE commands are designed to mass-unsubscribe
the client respectively all the channels and patters if called without
arguments.

However when these functions are called without arguments, but there are
no channels or patters we are subscribed to, the old behavior was to
don't reply at all.

This behavior is broken, as every command should always reply.
Also it is possible that we are no longer subscribed to a channels but we
are subscribed to patters or the other way around, and the client should
be notified with the correct number of subscriptions.

Also it is not pretty that sometimes we did not receive a reply at all
in a redis-cli session from these commands, blocking redis-cli trying
to read the reply.

This fixes issue #714.
2013-01-21 19:02:26 +01:00
..
type Test: regression for issue #801. 2012-12-02 20:43:11 +01:00
aofrw.tcl Tests modified to account for INFO fields renaming. 2012-05-25 15:20:59 +02:00
auth.tcl Fix for issue #132. Now AUTH raises an error if no server password is configured. 2011-10-10 22:21:17 +02:00
basic.tcl Type mismatch errors are now prefixed with WRONGTYPE. 2012-11-06 20:25:34 +01:00
bitops.tcl Type mismatch errors are now prefixed with WRONGTYPE. 2012-11-06 20:25:34 +01:00
dump.tcl Test: more MIGRATE tests. 2012-11-14 12:12:52 +01:00
expire.tcl TTL API change: TTL returns -2 for non existing keys. 2012-11-12 23:04:36 +01:00
introspection.tcl Tests for CLIENT GETNAME/SETNAME. 2013-01-15 13:34:17 +01:00
limits.tcl More robust maxclients test. 2012-04-18 11:34:18 +02:00
maxmemory.tcl Maxmemory test 2011-07-28 12:32:52 +02:00
multi.tcl Make an EXEC test more latency proof. 2012-11-29 16:12:14 +01:00
obuf-limits.tcl even less false positive on obuf-limits test. 2012-02-22 11:25:30 +01:00
other.tcl Test: MULTI/EXEC tests moved into multi.tcl. 2012-11-22 10:32:12 +01:00
printver.tcl Print version info before running the test 2011-05-20 11:44:54 +02:00
protocol.tcl New time limit for protocol desync test set to 30 seconds to reduce false positives. 2012-04-23 10:57:43 +02:00
pubsub.tcl UNSUBSCRIBE and PUNSUBSCRIBE: always provide a reply. 2013-01-21 19:02:26 +01:00
quit.tcl Add tests for OK on QUIT 2010-10-15 12:54:53 +02:00
scripting.tcl Fixed many typos. 2013-01-19 10:59:44 +01:00
slowlog.tcl Slowlog: don't log EXEC but just the executed commands. 2013-01-19 12:53:21 +01:00
sort.tcl "SORT by nosort" (skip sorting) respect sorted set ordering. 2012-10-03 14:54:43 +02:00