@@ -171,7 +171,7 @@ describe('RedisSentinel', () => {
171
171
} ) ;
172
172
} ) ;
173
173
174
- describe . skip ( `test with scripts` , ( ) => {
174
+ describe ( `test with scripts` , ( ) => {
175
175
testUtils . testWithClientSentinel ( 'with script' , async sentinel => {
176
176
const [ , reply ] = await Promise . all ( [
177
177
sentinel . set ( 'key' , '2' ) ,
@@ -197,8 +197,7 @@ describe.skip(`test with scripts`, () => {
197
197
} , GLOBAL . SENTINEL . WITH_SCRIPT )
198
198
} ) ;
199
199
200
-
201
- describe . skip ( `test with functions` , ( ) => {
200
+ describe ( `test with functions` , ( ) => {
202
201
testUtils . testWithClientSentinel ( 'with function' , async sentinel => {
203
202
await sentinel . functionLoad (
204
203
MATH_FUNCTION . code ,
@@ -238,7 +237,7 @@ describe.skip(`test with functions`, () => {
238
237
} , GLOBAL . SENTINEL . WITH_FUNCTION ) ;
239
238
} ) ;
240
239
241
- describe . skip ( `test with modules` , ( ) => {
240
+ describe ( `test with modules` , ( ) => {
242
241
testUtils . testWithClientSentinel ( 'with module' , async sentinel => {
243
242
const resp = await sentinel . bf . add ( 'key' , 'item' )
244
243
assert . equal ( resp , true ) ;
@@ -260,7 +259,7 @@ describe.skip(`test with modules`, () => {
260
259
} , GLOBAL . SENTINEL . WITH_MODULE ) ;
261
260
} ) ;
262
261
263
- describe . skip ( `test with replica pool size 1` , ( ) => {
262
+ describe ( `test with replica pool size 1` , ( ) => {
264
263
testUtils . testWithClientSentinel ( 'client lease' , async sentinel => {
265
264
sentinel . on ( "error" , ( ) => { } ) ;
266
265
@@ -302,7 +301,7 @@ describe.skip(`test with replica pool size 1`, () => {
302
301
} , GLOBAL . SENTINEL . WITH_REPLICA_POOL_SIZE_1 ) ;
303
302
} ) ;
304
303
305
- describe . skip ( `test with masterPoolSize 2, reserve client true` , ( ) => {
304
+ describe ( `test with masterPoolSize 2, reserve client true` , ( ) => {
306
305
// TODO: flaky test, sometimes fails with `promise1 === null`
307
306
testUtils . testWithClientSentinel ( 'reserve client, takes a client out of pool' , async sentinel => {
308
307
const promise1 = sentinel . use (
@@ -325,7 +324,7 @@ describe.skip(`test with masterPoolSize 2, reserve client true`, () => {
325
324
} , Object . assign ( GLOBAL . SENTINEL . WITH_RESERVE_CLIENT_MASTER_POOL_SIZE_2 , { skipTest : true } ) ) ;
326
325
} ) ;
327
326
328
- describe . skip ( `test with masterPoolSize 2` , ( ) => {
327
+ describe ( `test with masterPoolSize 2` , ( ) => {
329
328
testUtils . testWithClientSentinel ( 'multple clients' , async sentinel => {
330
329
sentinel . on ( "error" , ( ) => { } ) ;
331
330
@@ -383,6 +382,8 @@ describe.skip(`test with masterPoolSize 2`, () => {
383
382
// sentinel
384
383
// it should somehow replicate the `SentinelFramework` object functionallities
385
384
async function steadyState ( frame : SentinelFramework ) {
385
+ // wait a bit to ensure that sentinels are seeing eachother
386
+ await setTimeout ( 2000 )
386
387
let checkedMaster = false ;
387
388
let checkedReplicas = false ;
388
389
while ( ! checkedMaster || ! checkedReplicas ) {
@@ -463,7 +464,6 @@ describe('legacy tests', () => {
463
464
}
464
465
setImmediate ( deltaMeasurer ) ;
465
466
await frame . spawnRedisSentinel ( ) ;
466
-
467
467
await frame . getAllRunning ( ) ;
468
468
await steadyState ( frame ) ;
469
469
longestTestDelta = 0 ;
@@ -856,7 +856,6 @@ describe('legacy tests', () => {
856
856
857
857
it ( 'shutdown sentinel node' , async function ( ) {
858
858
this . timeout ( 60000 ) ;
859
-
860
859
sentinel = frame . getSentinelClient ( ) ;
861
860
sentinel . setTracer ( tracer ) ;
862
861
sentinel . on ( "error" , ( ) => { } ) ;
@@ -1013,7 +1012,7 @@ describe('legacy tests', () => {
1013
1012
this . timeout ( 30000 ) ;
1014
1013
const csc = new BasicPooledClientSideCache ( ) ;
1015
1014
1016
- sentinel = frame . getSentinelClient ( { nodeClientOptions : { RESP : 3 } , clientSideCache : csc , masterPoolSize : 5 } ) ;
1015
+ sentinel = frame . getSentinelClient ( { nodeClientOptions : { RESP : 3 as const } , RESP : 3 as const , clientSideCache : csc , masterPoolSize : 5 } ) ;
1017
1016
await sentinel . connect ( ) ;
1018
1017
1019
1018
await sentinel . set ( 'x' , 1 ) ;
0 commit comments