1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-31 14:51:04 +00:00

Streams: Tests modified XSTREAM -> XSETID

This commit is contained in:
zhaozhao.zz 2018-10-16 23:56:26 +08:00
parent a273ce9578
commit c2e4c64db4

@ -375,14 +375,14 @@ start_server {tags {"xsetid"}} {
assert {[dict get [r xinfo stream mystream] last-generated-id] == "200-0"} assert {[dict get [r xinfo stream mystream] last-generated-id] == "200-0"}
} }
test {XSTREAM cannot SETID with smaller ID} { test {XSETID cannot SETID with smaller ID} {
r XADD mystream * a b r XADD mystream * a b
catch {r XSETID mystream "1-1"} err catch {r XSETID mystream "1-1"} err
r XADD mystream MAXLEN 0 * a b r XADD mystream MAXLEN 0 * a b
set err set err
} {ERR*smaller*} } {ERR*smaller*}
test {XSTREAM cannot SETID on non-existent key} { test {XSETID cannot SETID on non-existent key} {
catch {r XSETID stream 1-1} err catch {r XSETID stream 1-1} err
set _ $err set _ $err
} {ERR no such key} } {ERR no such key}