You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix bug in cluster slots, enhance live resharding test
This commit is contained in:
@@ -82,6 +82,12 @@ describe('Cluster', () => {
|
||||
10
|
||||
);
|
||||
|
||||
await Promise.all(
|
||||
cluster.getMasters().map(({ client }) => {
|
||||
return client.clusterSetSlot(slot, ClusterSlotStates.NODE, to!.id);
|
||||
})
|
||||
);
|
||||
|
||||
// should be able to get the key from the new node
|
||||
assert.equal(
|
||||
await cluster.get(key),
|
||||
|
Reference in New Issue
Block a user