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
c2e4c64d
Commit
c2e4c64d
authored
Oct 16, 2018
by
zhaozhao.zz
Browse files
Streams: Tests modified XSTREAM -> XSETID
parent
a273ce95
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/stream.tcl
View file @
c2e4c64d
...
...
@@ -375,14 +375,14 @@ start_server {tags {"xsetid"}} {
assert
{[
dict get
[
r xinfo stream mystream
]
last-generated-id
]
==
"200-0"
}
}
test
{
XS
TREAM
cannot SETID with smaller ID
}
{
test
{
XS
ETID
cannot SETID with smaller ID
}
{
r XADD mystream * a b
catch
{
r XSETID mystream
"1-1"
}
err
r XADD mystream MAXLEN 0 * a b
set err
}
{
ERR*smaller*
}
test
{
XS
TREAM
cannot SETID on non-existent key
}
{
test
{
XS
ETID
cannot SETID on non-existent key
}
{
catch
{
r XSETID stream 1-1
}
err
set _ $err
}
{
ERR no such key
}
...
...
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