forked from mirror/redis
Increase backoff in failover tests
This commit is contained in:
parent
fd2200b051
commit
036680734d
|
@ -574,6 +574,8 @@ var _ = Describe("ClusterClient", func() {
|
||||||
Describe("ClusterClient failover", func() {
|
Describe("ClusterClient failover", func() {
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
opt = redisClusterOptions()
|
opt = redisClusterOptions()
|
||||||
|
opt.MinRetryBackoff = 100 * time.Millisecond
|
||||||
|
opt.MaxRetryBackoff = 3 * time.Second
|
||||||
client = cluster.clusterClient(opt)
|
client = cluster.clusterClient(opt)
|
||||||
|
|
||||||
_ = client.ForEachSlave(func(slave *redis.Client) error {
|
_ = client.ForEachSlave(func(slave *redis.Client) error {
|
||||||
|
|
Loading…
Reference in New Issue