1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00
This commit is contained in:
Leibale
2023-06-19 18:40:08 -04:00
parent 9d049c31a7
commit 2455ab2089
6 changed files with 56 additions and 66 deletions

View File

@@ -6,7 +6,7 @@
// import { SQUARE_SCRIPT } from '../client/index.spec';
// import { RootNodesUnavailableError } from '../errors';
// import { spy } from 'sinon';
// import { promiseTimeout } from '../utils';
// import { setTimeout } from 'timers/promises';
// import RedisClient from '../client';
// describe('Cluster', () => {
@@ -284,7 +284,7 @@
// // wait for migrating node to be notified about the new topology
// while ((await migratingClient.clusterInfo()).state !== 'ok') {
// await promiseTimeout(50);
// await setTimeout(50);
// }
// // make sure to cause `MOVED` error
@@ -340,7 +340,7 @@
// // wait for migrating node to be notified about the new topology
// while ((await migratingClient.clusterInfo()).state !== 'ok') {
// await promiseTimeout(50);
// await setTimeout(50);
// }
// const listener = spy();