@@ -6,8 +6,6 @@ import { RedisClientConnectionType } from 'src/modules/redis/client';
6
6
7
7
const mockRedisMemoryInfoResponse1 : string = '# Memory\r\nnumber_of_cached_scripts:10\r\n' ;
8
8
const mockRedisMemoryInfoResponse2 : string = '# Memory\r\nnumber_of_cached_scripts:11\r\n' ;
9
- const mockRedisMemoryInfoResponse3 : string = '# Memory\r\nnumber_of_cached_scripts:0\r\n' ;
10
- const mockRedisMemoryInfoResponse4 : string = '# Memory\r\nnumber_of_cached_scripts:1\r\n' ;
11
9
12
10
const mockRedisKeyspaceInfoResponse1 : string = '# Keyspace\r\ndb0:keys=2,expires=0,avg_ttl=0\r\n' ;
13
11
const mockRedisKeyspaceInfoResponse2 : string = `# Keyspace\r\ndb0:keys=2,expires=0,avg_ttl=0\r\n
@@ -35,9 +33,6 @@ const mockRedisAclListResponse2: string[] = [
35
33
const mockFTListResponse1 = [ ] ;
36
34
const mockFTListResponse2 = [ 'idx' ] ;
37
35
38
- const mockTfunctionListResponse1 = [ ] ;
39
- const mockTfunctionListResponse2 = [ 'library' ] ;
40
-
41
36
const mockKeys = [
42
37
{
43
38
name : Buffer . from ( 'name' ) , type : 'string' , length : 10 , memory : 10 , ttl : - 1 ,
@@ -663,18 +658,4 @@ describe('RecommendationProvider', () => {
663
658
expect ( RTSRecommendation ) . toEqual ( null ) ;
664
659
} ) ;
665
660
} ) ;
666
-
667
- describe ( 'determineFunctionsWithStreamsRecommendation' , ( ) => {
668
- it ( 'should return null when there are libraries' , async ( ) => {
669
- const functionsWithStreamsRecommendation = await service
670
- . determineFunctionsWithStreamsRecommendation ( mockKeys , mockTfunctionListResponse2 ) ;
671
- expect ( functionsWithStreamsRecommendation ) . toEqual ( null ) ;
672
- } ) ;
673
-
674
- it ( 'should return null when there is no stream key' , async ( ) => {
675
- const functionsWithStreamsRecommendation = await service
676
- . determineFunctionsWithStreamsRecommendation ( [ mockSmallStringKey ] , mockTfunctionListResponse1 ) ;
677
- expect ( functionsWithStreamsRecommendation ) . toEqual ( null ) ;
678
- } ) ;
679
- } ) ;
680
661
} ) ;
0 commit comments