summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-11-22 15:50:00 +0100
committerantirez <antirez@gmail.com>2012-11-22 15:51:01 +0100
commit9120275dc94dfb6b24773412d26d7de70a5675a1 (patch)
tree0511c059afcff93d4e2a9ab1ce2b2eec0ea6554e /tests
parentde00a5a0929da097ecd46612e83b482698419f08 (diff)
downloadredis-9120275dc94dfb6b24773412d26d7de70a5675a1.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.tcl4
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