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
0a91fc45
Commit
0a91fc45
authored
Sep 14, 2015
by
antirez
Browse files
Test: MOVE expire test improved.
Related to #2765.
parent
4fec5ee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/keyspace.tcl
View file @
0a91fc45
...
@@ -206,6 +206,19 @@ start_server {tags {"keyspace"}} {
...
@@ -206,6 +206,19 @@ start_server {tags {"keyspace"}} {
r select 9
r select 9
}
}
test
{
MOVE does not create an expire if it does not exist
}
{
r select 10
r flushdb
r select 9
r set mykey foo
r move mykey 10
assert
{[
r ttl mykey
]
== -2
}
r select 10
assert
{[
r ttl mykey
]
== -1
}
assert
{[
r get mykey
]
eq
"foo"
}
r select 9
}
test
{
SET/GET keys in different DBs
}
{
test
{
SET/GET keys in different DBs
}
{
r set a hello
r set a hello
r set b world
r set b world
...
...
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