summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguybe7 <guy.benoish@redislabs.com>2023-05-04 10:58:31 +0200
committerGitHub <noreply@github.com>2023-05-04 11:58:31 +0300
commit857c09b04d7be1b016956e55a9f7b8118585c59b (patch)
tree6f818612a7bfa35bb6bb5f2f026b47bb439252ca
parentfbbedcf5936f6016db0871bcfec3ee158924249e (diff)
downloadredis-857c09b04d7be1b016956e55a9f7b8118585c59b.tar.gz
multi.tcl: reset readraw at the end of the test (#12123)
1. reset the readraw mode after a test that uses it. undetected since the only test after that on the same server didn't read any replies. 2. fix a cross slot issue that was undetected in cluster mode because readraw doesn't throw exceptions on errors.
-rw-r--r--tests/unit/multi.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/multi.tcl b/tests/unit/multi.tcl
index bdf398150..851e02247 100644
--- a/tests/unit/multi.tcl
+++ b/tests/unit/multi.tcl
@@ -891,14 +891,14 @@ start_server {tags {"multi"}} {
set res [r read]
assert_equal $res "+OK"
set res [r read]
- r readraw 1
+ r readraw 0
set _ $res
} {*CONFIG SET failed*}
test "Flushall while watching several keys by one client" {
r flushall
- r mset a a b b
- r watch b a
+ r mset a{t} a b{t} b
+ r watch b{t} a{t}
r flushall
r ping
}