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
674df1ee
Commit
674df1ee
authored
Nov 25, 2011
by
antirez
Browse files
Added regression tests for issue #209
parent
07ac2daa
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/cas.tcl
View file @
674df1ee
...
...
@@ -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