Unverified Commit 42dd98ec authored by Wen Hui's avatar Wen Hui Committed by GitHub
Browse files

adding missing test cases GET and GETEX (#12125)

adding test case of expired key or not exist for GET and GETEX.
for better test coverage.
parent ce5f4ea3
...@@ -151,6 +151,14 @@ start_server {tags {"string"}} { ...@@ -151,6 +151,14 @@ start_server {tags {"string"}} {
set ex set ex
} {*syntax*} } {*syntax*}
test "GETEX and GET expired key or not exist" {
r del foo
r set foo bar px 1
after 2
assert_equal {} [r getex foo]
assert_equal {} [r get foo]
}
test "GETEX no arguments" { test "GETEX no arguments" {
set ex {} set ex {}
catch {r getex} ex catch {r getex} ex
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment