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
5d08413b
Commit
5d08413b
authored
Jan 09, 2014
by
antirez
Browse files
Test: regression for issues #1483.
parent
58c8a071
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/dump.tcl
View file @
5d08413b
...
...
@@ -16,6 +16,16 @@ start_server {tags {"dump"}} {
r get foo
}
{
bar
}
test
{
RESTORE can set an expire that overflows a 32 bit integer
}
{
r set foo bar
set encoded
[
r dump foo
]
r del foo
r restore foo 2569591501 $encoded
set ttl
[
r pttl foo
]
assert
{
$ttl
>=
(
2569591501-3000
)
&& $ttl <= 2569591501
}
r get foo
}
{
bar
}
test
{
RESTORE returns an error of the key already exists
}
{
r set foo bar
set e
{}
...
...
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