mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Tests for XGROUP CREATE MKSTREAM.
This commit is contained in:
parent
492fd5c011
commit
56871aeb60
@ -9,6 +9,17 @@ start_server {
|
|||||||
set err
|
set err
|
||||||
} {BUSYGROUP*}
|
} {BUSYGROUP*}
|
||||||
|
|
||||||
|
test {XGROUP CREATE: automatic stream creation fails without MKSTREAM} {
|
||||||
|
r DEL mystream
|
||||||
|
catch {r XGROUP CREATE mystream mygroup $} err
|
||||||
|
set err
|
||||||
|
} {ERR*}
|
||||||
|
|
||||||
|
test {XGROUP CREATE: automatic stream creation works with MKSTREAM} {
|
||||||
|
r DEL mystream
|
||||||
|
r XGROUP CREATE mystream mygroup $ MKSTREAM
|
||||||
|
} {OK}
|
||||||
|
|
||||||
test {XREADGROUP will return only new elements} {
|
test {XREADGROUP will return only new elements} {
|
||||||
r XADD mystream * a 1
|
r XADD mystream * a 1
|
||||||
r XADD mystream * b 2
|
r XADD mystream * b 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user