Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
56871aeb
Commit
56871aeb
authored
Oct 17, 2018
by
antirez
Browse files
Tests for XGROUP CREATE MKSTREAM.
parent
492fd5c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/stream-cgroups.tcl
View file @
56871aeb
...
...
@@ -9,6 +9,17 @@ start_server {
set err
}
{
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
}
{
r XADD mystream * a 1
r XADD mystream * b 2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment