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
54b9a0e6
Commit
54b9a0e6
authored
Feb 16, 2018
by
antirez
Browse files
CG: test XACK remaining features.
parent
5f8c57f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/stream-cgroups.tcl
View file @
54b9a0e6
...
...
@@ -71,4 +71,14 @@ start_server {
set global_pel
[
r XPENDING mystream mygroup - + 10
]
assert
{[
llength $global_pel
]
== 3
}
}
test
{
XACK can't remove the same item multiple times
}
{
assert
{[
r XACK mystream mygroup $id1
]
eq 0
}
}
test
{
XACK is able to accept multiple arguments
}
{
# One of the IDs was already removed, so it should ack
# just ID2.
assert
{[
r XACK mystream mygroup $id1 $id2
]
eq 1
}
}
}
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