Fix slot assignment when building a cluster for tests.

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2020-07-22 11:04:10 -04:00
1 parent fc9fa2614d
commit db9b7ca447
1 file changed
+1 -1
@@ -113,7 +113,7 @@ public abstract class AbstractRedisClusterTest {
final int startInclusive = i * slotsPerNode;
final int endExclusive = i == nodes.length - 1 ? MAX_SLOT : (i + 1) * slotsPerNode;
final RedisClient assignSlotClient = RedisClient.create(RedisURI.create("127.0.0.1", nodes[0].ports().get(0)));
final RedisClient assignSlotClient = RedisClient.create(RedisURI.create("127.0.0.1", nodes[i].ports().get(0)));
try {
final int[] slots = new int[endExclusive - startInclusive];