From 182897e4d54cbeea50728ac69d7921127fb0263b Mon Sep 17 00:00:00 2001 From: wuyuxiang Date: Mon, 16 Dec 2024 18:05:53 +0800 Subject: [PATCH] fix DoXCache testcase --- cluster_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cluster_test.go b/cluster_test.go index 1620b54c..fed16812 100644 --- a/cluster_test.go +++ b/cluster_test.go @@ -4628,9 +4628,9 @@ func TestClusterClientErr(t *testing.T) { }, DoMultiFn: func(multi ...Completed) *redisresults { if atomic.AddInt64(&count, 1) <= 3 { - return &redisresults{s: []RedisResult{{}, {}, {}, {}, {}, newResult(RedisMessage{typ: '-', string: "ASK 0 :1"}, nil)}} + return &redisresults{s: []RedisResult{{}, {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '-', string: "ASK 0 :1"}, nil)}} } - return &redisresults{s: []RedisResult{{}, {}, {}, {}, {}, newResult(RedisMessage{typ: '*', values: []RedisMessage{{}, {typ: '+', string: "b"}}}, nil)}} + return &redisresults{s: []RedisResult{{}, {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '*', values: []RedisMessage{{}, {typ: '+', string: "b"}}}, nil)}} }, } }, @@ -4658,9 +4658,9 @@ func TestClusterClientErr(t *testing.T) { }, DoMultiFn: func(multi ...Completed) *redisresults { if atomic.AddInt64(&count, 1) <= 3 { - return &redisresults{s: []RedisResult{{}, {}, {}, {}, {}, newResult(RedisMessage{typ: '-', string: "ASK 0 :1"}, nil)}} + return &redisresults{s: []RedisResult{{}, {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '-', string: "ASK 0 :1"}, nil)}} } - return &redisresults{s: []RedisResult{{}, {}, {}, {}, {}, newResult(RedisMessage{typ: '*', values: []RedisMessage{{}, {typ: '+', string: "b"}}}, nil)}} + return &redisresults{s: []RedisResult{{}, {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '*', values: []RedisMessage{{}, {typ: '+', string: "b"}}}, nil)}} }, } }, @@ -4689,13 +4689,13 @@ func TestClusterClientErr(t *testing.T) { DoMultiFn: func(multi ...Completed) *redisresults { if atomic.AddInt64(&count, 1) <= 3 { return &redisresults{s: []RedisResult{ - {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '-', string: "ASK 0 :1"}, nil), - {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '-', string: "ASK 0 :1"}, nil), + {}, {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '-', string: "ASK 0 :1"}, nil), + {}, {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '-', string: "ASK 0 :1"}, nil), }} } return &redisresults{s: []RedisResult{ - {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '*', values: []RedisMessage{{}, {}, {typ: '+', string: multi[4].Commands()[1]}}}, nil), - {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '*', values: []RedisMessage{{}, {}, {typ: '+', string: multi[10].Commands()[1]}}}, nil), + {}, {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '*', values: []RedisMessage{{}, {}, {typ: '+', string: multi[5].Commands()[1]}}}, nil), + {}, {}, {}, {}, {}, {}, newResult(RedisMessage{typ: '*', values: []RedisMessage{{}, {}, {typ: '+', string: multi[12].Commands()[1]}}}, nil), }} }, }