summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-03-27 11:30:23 +0100
committerantirez <antirez@gmail.com>2013-03-27 11:57:28 +0100
commit26319d08b5f0b1d100db96beb999cdcf738f4f51 (patch)
tree855b8288e5853fdc0812cec29271e7371016afd5
parentfc78d978de57aadc5e2fceb22f8de209424bb59f (diff)
downloadredis-26319d08b5f0b1d100db96beb999cdcf738f4f51.tar.gz
Test: Restore DB back to 9 after testing MULTI/EXEC with DB 5.
-rw-r--r--tests/unit/multi.tcl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/multi.tcl b/tests/unit/multi.tcl
index f7a1f6468..798f589b0 100644
--- a/tests/unit/multi.tcl
+++ b/tests/unit/multi.tcl
@@ -205,7 +205,10 @@ start_server {tags {"multi"}} {
r select 5
r multi
r ping
- r exec
+ set res [r exec]
+ # Restore original DB
+ r select 9
+ set res
} {PONG}
test {WATCH will consider touched keys target of EXPIRE} {