Fix slot assignment when building a cluster for tests.

This commit is contained in:
Jon Chambers 2020-07-21 18:11:02 -04:00 committed by Jon Chambers
parent fc9fa2614d
commit db9b7ca447
1 changed files with 1 additions and 1 deletions

View File

@ -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];