@@ -174,16 +174,16 @@ export class SentinelFramework extends DockerBase {
174174 this . #testUtils = TestUtils . createFromConfig ( {
175175 dockerImageName : 'redislabs/client-libs-test' ,
176176 dockerImageVersionArgument : 'redis-version' ,
177- defaultDockerVersion : '8.2-rc2-pre '
177+ defaultDockerVersion : '8.2'
178178 } ) ;
179179 this . #nodeMap = new Map < string , ArrayElement < Awaited < ReturnType < SentinelFramework [ 'spawnRedisSentinelNodes' ] > > > > ( ) ;
180180 this . #sentinelMap = new Map < string , ArrayElement < Awaited < ReturnType < SentinelFramework [ 'spawnRedisSentinelSentinels' ] > > > > ( ) ;
181181 }
182182
183- getSentinelClient ( opts ?: Partial < RedisSentinelOptions < RedisModules ,
183+ getSentinelClient ( opts ?: Partial < RedisSentinelOptions < RedisModules ,
184184 RedisFunctions ,
185185 RedisScripts ,
186- RespVersions ,
186+ RespVersions ,
187187 TypeMapping > > , errors = true ) {
188188 if ( opts ?. sentinelRootNodes !== undefined ) {
189189 throw new Error ( "cannot specify sentinelRootNodes here" ) ;
@@ -252,7 +252,7 @@ export class SentinelFramework extends DockerBase {
252252
253253 protected async spawnRedisSentinelNodes ( replicasCount : number ) {
254254 const master = await this . #testUtils. spawnRedisServer ( { serverArguments : DEBUG_MODE_ARGS } )
255-
255+
256256 const replicas : Array < RedisServerDocker > = [ ]
257257 for ( let i = 0 ; i < replicasCount ; i ++ ) {
258258 const replica = await this . #testUtils. spawnRedisServer ( { serverArguments : DEBUG_MODE_ARGS } )
@@ -282,7 +282,7 @@ export class SentinelFramework extends DockerBase {
282282 async getAllRunning ( ) {
283283 for ( const port of this . getAllNodesPort ( ) ) {
284284 let first = true ;
285- while ( await isPortAvailable ( port ) ) {
285+ while ( await isPortAvailable ( port ) ) {
286286 if ( ! first ) {
287287 console . log ( `problematic restart ${ port } ` ) ;
288288 await setTimeout ( 500 ) ;
@@ -295,7 +295,7 @@ export class SentinelFramework extends DockerBase {
295295
296296 for ( const port of this . getAllSentinelsPort ( ) ) {
297297 let first = true ;
298- while ( await isPortAvailable ( port ) ) {
298+ while ( await isPortAvailable ( port ) ) {
299299 if ( ! first ) {
300300 await setTimeout ( 500 ) ;
301301 } else {
@@ -325,17 +325,17 @@ export class SentinelFramework extends DockerBase {
325325 await client . connect ( ) ;
326326 await client . replicaOf ( "127.0.0.1" , masterPort ) ;
327327 await client . close ( ) ;
328-
328+
329329
330330 this . #nodeList. push ( replica ) ;
331331 this . #nodeMap. set ( replica . port . toString ( ) , replica ) ;
332332 }
333333
334334 async getMaster ( tracer ?: Array < string > ) : Promise < string | undefined > {
335335 const client = RedisClient . create ( {
336- name : this . config . sentinelName ,
336+ name : this . config . sentinelName ,
337337 socket : {
338- host : "127.0.0.1" ,
338+ host : "127.0.0.1" ,
339339 port : this . #sentinelList[ 0 ] . port ,
340340 } ,
341341 modules : RedisSentinelModule ,
@@ -464,9 +464,9 @@ export class SentinelFramework extends DockerBase {
464464
465465 async sentinelSentinels ( ) {
466466 const client = RedisClient . create ( {
467- name : this . config . sentinelName ,
467+ name : this . config . sentinelName ,
468468 socket : {
469- host : "127.0.0.1" ,
469+ host : "127.0.0.1" ,
470470 port : this . #sentinelList[ 0 ] . port ,
471471 } ,
472472 modules : RedisSentinelModule ,
@@ -480,9 +480,9 @@ export class SentinelFramework extends DockerBase {
480480
481481 async sentinelMaster ( ) {
482482 const client = RedisClient . create ( {
483- name : this . config . sentinelName ,
483+ name : this . config . sentinelName ,
484484 socket : {
485- host : "127.0.0.1" ,
485+ host : "127.0.0.1" ,
486486 port : this . #sentinelList[ 0 ] . port ,
487487 } ,
488488 modules : RedisSentinelModule ,
@@ -496,9 +496,9 @@ export class SentinelFramework extends DockerBase {
496496
497497 async sentinelReplicas ( ) {
498498 const client = RedisClient . create ( {
499- name : this . config . sentinelName ,
499+ name : this . config . sentinelName ,
500500 socket : {
501- host : "127.0.0.1" ,
501+ host : "127.0.0.1" ,
502502 port : this . #sentinelList[ 0 ] . port ,
503503 } ,
504504 modules : RedisSentinelModule ,
@@ -509,4 +509,4 @@ export class SentinelFramework extends DockerBase {
509509
510510 return replicas
511511 }
512- }
512+ }
0 commit comments