From 40b692e82275ae5a17b23c2ddd74b9b2edd69c25 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 27 Mar 2013 11:30:23 +0100 Subject: [PATCH] Test: Restore DB back to 9 after testing MULTI/EXEC with DB 5. --- tests/unit/multi.tcl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/multi.tcl b/tests/unit/multi.tcl index f7a1f646..798f589b 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} {