diff options
author | antirez <antirez@gmail.com> | 2012-11-22 15:50:00 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-11-22 15:50:00 +0100 |
commit | 95f68f7b0fc4ffc700361484b6c792a8e03f3a13 (patch) | |
tree | 225d63ec86aee5291405e6610e8e90681697302a /tests | |
parent | cceb0c5b4a24d9027abfc47924d5f93af87034b4 (diff) | |
download | redis-95f68f7b0fc4ffc700361484b6c792a8e03f3a13.tar.gz |
EVALSHA is now case insensitive.
EVALSHA used to crash if the SHA1 was not lowercase (Issue #783).
Fixed using a case insensitive dictionary type for the sha -> script
map used for replication of scripts.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/scripting.tcl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/scripting.tcl b/tests/unit/scripting.tcl index f96d0fc64..f1df11f3c 100644 --- a/tests/unit/scripting.tcl +++ b/tests/unit/scripting.tcl @@ -47,6 +47,10 @@ start_server {tags {"scripting"}} { r evalsha 9bd632c7d33e571e9f24556ebed26c3479a87129 0 } {myval} + test {EVALSHA - Can we call a SHA1 in uppercase?} { + r evalsha 9BD632C7D33E571E9F24556EBED26C3479A87129 0 + } {myval} + test {EVALSHA - Do we get an error on invalid SHA1?} { catch {r evalsha NotValidShaSUM 0} e set _ $e |