()
| 47 | } |
| 48 | |
| 49 | func (s *clusterScenario) addrs() []string { |
| 50 | addrs := make([]string, len(s.ports)) |
| 51 | for i, port := range s.ports { |
| 52 | addrs[i] = net.JoinHostPort("127.0.0.1", port) |
| 53 | } |
| 54 | return addrs |
| 55 | } |
| 56 | |
| 57 | func (s *clusterScenario) newClusterClientUnstable(opt *redis.ClusterOptions) *redis.ClusterClient { |
| 58 | opt.Addrs = s.addrs() |
no outgoing calls
no test coverage detected