Test: MULTI state is cleared after EXECABORT error.

This commit is contained in:
antirez 2012-11-17 12:11:13 +01:00
parent 4977ab79af
commit 65606b3bc6

View File

@ -74,6 +74,17 @@ start_server {tags {"multi"}} {
list [r exists foo1] [r exists foo2] list [r exists foo1] [r exists foo2]
} {0 0} } {0 0}
test {If EXEC aborts, the client MULTI state is cleared} {
r del foo1 foo2
r multi
r set foo1 bar1
catch {r non-existing-command}
r set foo2 bar2
catch {r exec} e
assert_match {EXECABORT*} $e
r ping
} {PONG}
test {EXEC works on WATCHed key not modified} { test {EXEC works on WATCHed key not modified} {
r watch x y z r watch x y z
r watch k r watch k