Return a specific NOAUTH error if authentication is required.

This commit is contained in:
antirez
2013-02-12 16:25:41 +01:00
parent 24f258360b
commit dc24a6b132
4 changed files with 7 additions and 5 deletions

View File

@ -14,7 +14,7 @@ start_server {tags {"auth"} overrides {requirepass foobar}} {
test {Arbitrary command gives an error when AUTH is required} {
catch {r set foo bar} err
set _ $err
} {ERR*operation not permitted}
} {NOAUTH*}
test {AUTH succeeds when the right password is given} {
r auth foobar