1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

[CAE-342] Fixed issue with sentinel connect

This commit is contained in:
H. Temelski
2025-03-06 12:07:16 +02:00
parent 8b4ed0059a
commit 726829693d
3 changed files with 21 additions and 7 deletions

View File

@@ -180,9 +180,14 @@ export class SentinelFramework extends DockerBase {
RedisScripts,
RespVersions,
TypeMapping>>, errors = true) {
if (opts?.sentinelRootNodes !== undefined) {
throw new Error("cannot specify sentinelRootNodes here");
}
// remove this safeguard
// we want to test the case when
// we cannot connect to sentinel
// if (opts?.sentinelRootNodes !== undefined) {
// throw new Error("cannot specify sentinelRootNodes here");
// }
if (opts?.name !== undefined) {
throw new Error("cannot specify sentinel db name here");
}