redis/tests
Guy Benoish a351e74fe9 Blocking XREAD[GROUP] should always reply with valid data (or timeout)
This commit solves the following bug:
127.0.0.1:6379> XGROUP CREATE x grp $ MKSTREAM
OK
127.0.0.1:6379> XADD x 666 f v
"666-0"
127.0.0.1:6379> XREADGROUP GROUP grp Alice BLOCK 0 STREAMS x >
1) 1) "x"
   2) 1) 1) "666-0"
         2) 1) "f"
            2) "v"
127.0.0.1:6379> XADD x 667 f v
"667-0"
127.0.0.1:6379> XDEL x 667
(integer) 1
127.0.0.1:6379> XREADGROUP GROUP grp Alice BLOCK 0 STREAMS x >
1) 1) "x"
   2) (empty array)

The root cause is that we use s->last_id in streamCompareID
while we should use the last *valid* ID
2019-12-30 10:06:01 +05:30
..
assets Fix test "server is up" detection after logging changes. 2016-12-19 16:49:58 +01:00
cluster TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
helpers revert an accidental test code change done as part of the tls project 2019-12-01 16:10:09 +02:00
integration incrbyfloat: fix issue #5256 ttl lost after propagate 2019-12-18 15:44:51 +08:00
modules Fixed some documentation 2019-12-17 07:49:21 +00:00
sentinel TLS: Configuration options. 2019-10-07 21:07:27 +03:00
support test infra: improve prints on failed assertions 2019-10-29 17:38:12 +02:00
tmp minor fixes to the new test suite, html doc updated 2010-05-14 18:48:33 +02:00
unit Blocking XREAD[GROUP] should always reply with valid data (or timeout) 2019-12-30 10:06:01 +05:30
instances.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
test_helper.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00