Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6dd4d864
Commit
6dd4d864
authored
Oct 16, 2018
by
zhaozhao.zz
Committed by
antirez
Oct 17, 2018
Browse files
Streams: Tests modified XSTREAM -> XSETID
parent
3aff0e8c
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/type/stream.tcl
View file @
6dd4d864
...
@@ -375,14 +375,14 @@ start_server {tags {"xsetid"}} {
...
@@ -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
{
XS
TREAM
cannot SETID with smaller ID
}
{
test
{
XS
ETID
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
{
XS
TREAM
cannot SETID on non-existent key
}
{
test
{
XS
ETID
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
}
...
...
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