Fix slot assignment when building a cluster for tests.
This commit is contained in:
parent
fc9fa2614d
commit
db9b7ca447
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue