(ctx context.Context, scenario *clusterScenario)
| 210 | } |
| 211 | |
| 212 | func collectNodeInformation(ctx context.Context, scenario *clusterScenario) error { |
| 213 | for pos, port := range scenario.ports { |
| 214 | client := redis.NewClient(&redis.Options{ |
| 215 | Addr: ":" + port, |
| 216 | }) |
| 217 | |
| 218 | myID, err := client.ClusterMyID(ctx).Result() |
| 219 | if err != nil { |
| 220 | return err |
| 221 | } |
| 222 | |
| 223 | scenario.clients[port] = client |
| 224 | scenario.nodeIDs[pos] = myID |
| 225 | } |
| 226 | return nil |
| 227 | } |
| 228 | |
| 229 | func assertSlotsEqual(slots, wanted []redis.ClusterSlot) error { |
| 230 | outerLoop: |
no test coverage detected