@@ -30,8 +30,8 @@ describe('VRANDMEMBER', () => {
3030 assert . equal ( typeof result , 'string' ) ;
3131 assert . ok ( [ 'element1' , 'element2' , 'element3' ] . includes ( result as string ) ) ;
3232 } , {
33- client : GLOBAL . SERVERS . OPEN ,
34- cluster : GLOBAL . CLUSTERS . OPEN
33+ client : { ... GLOBAL . SERVERS . OPEN , minimumDockerVersion : [ 8 , 0 ] } ,
34+ cluster : { ... GLOBAL . CLUSTERS . OPEN , minimumDockerVersion : [ 8 , 0 ] }
3535 } ) ;
3636
3737 testUtils . testAll ( 'vRandMember with positive count - returns distinct elements' , async client => {
@@ -44,8 +44,8 @@ describe('VRANDMEMBER', () => {
4444 assert . equal ( result . length , 2 ) ;
4545
4646 } , {
47- client : GLOBAL . SERVERS . OPEN ,
48- cluster : GLOBAL . CLUSTERS . OPEN
47+ client : { ... GLOBAL . SERVERS . OPEN , minimumDockerVersion : [ 8 , 0 ] } ,
48+ cluster : { ... GLOBAL . CLUSTERS . OPEN , minimumDockerVersion : [ 8 , 0 ] }
4949 } ) ;
5050
5151 testUtils . testAll ( 'vRandMember with negative count - allows duplicates' , async client => {
@@ -61,8 +61,8 @@ describe('VRANDMEMBER', () => {
6161 assert . ok ( [ 'element1' , 'element2' ] . includes ( element ) ) ;
6262 } ) ;
6363 } , {
64- client : GLOBAL . SERVERS . OPEN ,
65- cluster : GLOBAL . CLUSTERS . OPEN
64+ client : { ... GLOBAL . SERVERS . OPEN , minimumDockerVersion : [ 8 , 0 ] } ,
65+ cluster : { ... GLOBAL . CLUSTERS . OPEN , minimumDockerVersion : [ 8 , 0 ] }
6666 } ) ;
6767
6868 testUtils . testAll ( 'vRandMember count exceeds set size - returns entire set' , async client => {
@@ -77,8 +77,8 @@ describe('VRANDMEMBER', () => {
7777 assert . ok ( result . includes ( 'element1' ) ) ;
7878 assert . ok ( result . includes ( 'element2' ) ) ;
7979 } , {
80- client : GLOBAL . SERVERS . OPEN ,
81- cluster : GLOBAL . CLUSTERS . OPEN
80+ client : { ... GLOBAL . SERVERS . OPEN , minimumDockerVersion : [ 8 , 0 ] } ,
81+ cluster : { ... GLOBAL . CLUSTERS . OPEN , minimumDockerVersion : [ 8 , 0 ] }
8282 } ) ;
8383
8484 testUtils . testAll ( 'vRandMember on non-existent key' , async client => {
@@ -91,8 +91,8 @@ describe('VRANDMEMBER', () => {
9191 assert . ok ( Array . isArray ( resultWithCount ) ) ;
9292 assert . equal ( resultWithCount . length , 0 ) ;
9393 } , {
94- client : GLOBAL . SERVERS . OPEN ,
95- cluster : GLOBAL . CLUSTERS . OPEN
94+ client : { ... GLOBAL . SERVERS . OPEN , minimumDockerVersion : [ 8 , 0 ] } ,
95+ cluster : { ... GLOBAL . CLUSTERS . OPEN , minimumDockerVersion : [ 8 , 0 ] }
9696 } ) ;
9797 } ) ;
9898
@@ -109,7 +109,8 @@ describe('VRANDMEMBER', () => {
109109 ...GLOBAL . SERVERS . OPEN ,
110110 clientOptions : {
111111 RESP : 3
112- }
112+ } ,
113+ minimumDockerVersion : [ 8 , 0 ]
113114 } ) ;
114115
115116 testUtils . testWithClient ( 'vRandMember with positive count - returns distinct elements' , async client => {
@@ -133,7 +134,8 @@ describe('VRANDMEMBER', () => {
133134 ...GLOBAL . SERVERS . OPEN ,
134135 clientOptions : {
135136 RESP : 3
136- }
137+ } ,
138+ minimumDockerVersion : [ 8 , 0 ]
137139 } ) ;
138140
139141 testUtils . testWithClient ( 'vRandMember with negative count - allows duplicates' , async client => {
@@ -152,7 +154,8 @@ describe('VRANDMEMBER', () => {
152154 ...GLOBAL . SERVERS . OPEN ,
153155 clientOptions : {
154156 RESP : 3
155- }
157+ } ,
158+ minimumDockerVersion : [ 8 , 0 ]
156159 } ) ;
157160
158161 testUtils . testWithClient ( 'vRandMember count exceeds set size - returns entire set' , async client => {
@@ -170,7 +173,8 @@ describe('VRANDMEMBER', () => {
170173 ...GLOBAL . SERVERS . OPEN ,
171174 clientOptions : {
172175 RESP : 3
173- }
176+ } ,
177+ minimumDockerVersion : [ 8 , 0 ]
174178 } ) ;
175179
176180 testUtils . testWithClient ( 'vRandMember on non-existent key' , async client => {
@@ -186,7 +190,8 @@ describe('VRANDMEMBER', () => {
186190 ...GLOBAL . SERVERS . OPEN ,
187191 clientOptions : {
188192 RESP : 3
189- }
193+ } ,
194+ minimumDockerVersion : [ 8 , 0 ]
190195 } ) ;
191196 } ) ;
192197} ) ;
0 commit comments