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
5f8c57f2
Commit
5f8c57f2
authored
Feb 16, 2018
by
antirez
Browse files
CG: test XACK ability to remove items from the PELs.
parent
f5799e72
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/stream-cgroups.tcl
View file @
5f8c57f2
...
...
@@ -58,4 +58,17 @@ start_server {
set pending
[
r XPENDING mystream mygroup - + 10 client-1
]
assert
{[
llength $pending
]
== 2
}
}
test
{
XACK is able to remove items from the client/group PEL
}
{
set pending
[
r XPENDING mystream mygroup - + 10 client-1
]
set id1
[
lindex $pending 0 0
]
set id2
[
lindex $pending 1 0
]
assert
{[
r XACK mystream mygroup $id1
]
eq 1
}
set pending
[
r XPENDING mystream mygroup - + 10 client-1
]
assert
{[
llength $pending
]
== 1
}
set id
[
lindex $pending 0 0
]
assert
{
$id
eq $id2
}
set global_pel
[
r XPENDING mystream mygroup - + 10
]
assert
{[
llength $global_pel
]
== 3
}
}
}
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