Skip to content

Commit

Permalink
fix DoXCache testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyuxiang committed Dec 16, 2024
1 parent 5c2c274 commit 182897e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)}}
},
}
},
Expand Down Expand Up @@ -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)}}
},
}
},
Expand Down Expand Up @@ -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),
}}
},
}
Expand Down

0 comments on commit 182897e

Please sign in to comment.