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
fcf57836
Commit
fcf57836
authored
Nov 25, 2011
by
antirez
Browse files
Added regression tests for issue #209
parent
6532df2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/cas.tcl
View file @
fcf57836
...
...
@@ -125,11 +125,32 @@ start_server {tags {"cas"}} {
test
{
WATCH will not consider touched expired keys
}
{
r del x
r set x foo
r expire x
2
r expire x
1
r watch x
after
30
00
after
11
00
r multi
r ping
r exec
}
{
PONG
}
test
{
DISCARD should clear the WATCH dirty flag on the client
}
{
r watch x
r set x 10
r multi
r discard
r multi
r incr x
r exec
}
{
11
}
test
{
DISCARD should UNWATCH all the keys
}
{
r watch x
r set x 10
r multi
r discard
r set x 10
r multi
r incr x
r exec
}
{
11
}
}
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