mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
CG: test XACK ability to remove items from the PELs.
This commit is contained in:
parent
f5799e728a
commit
5f8c57f28a
@ -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}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user