@@ -30,8 +30,8 @@ describe('VRANDMEMBER', () => {
30
30
assert . equal ( typeof result , 'string' ) ;
31
31
assert . ok ( [ 'element1' , 'element2' , 'element3' ] . includes ( result as string ) ) ;
32
32
} , {
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 ] }
35
35
} ) ;
36
36
37
37
testUtils . testAll ( 'vRandMember with positive count - returns distinct elements' , async client => {
@@ -44,8 +44,8 @@ describe('VRANDMEMBER', () => {
44
44
assert . equal ( result . length , 2 ) ;
45
45
46
46
} , {
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 ] }
49
49
} ) ;
50
50
51
51
testUtils . testAll ( 'vRandMember with negative count - allows duplicates' , async client => {
@@ -61,8 +61,8 @@ describe('VRANDMEMBER', () => {
61
61
assert . ok ( [ 'element1' , 'element2' ] . includes ( element ) ) ;
62
62
} ) ;
63
63
} , {
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 ] }
66
66
} ) ;
67
67
68
68
testUtils . testAll ( 'vRandMember count exceeds set size - returns entire set' , async client => {
@@ -77,8 +77,8 @@ describe('VRANDMEMBER', () => {
77
77
assert . ok ( result . includes ( 'element1' ) ) ;
78
78
assert . ok ( result . includes ( 'element2' ) ) ;
79
79
} , {
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 ] }
82
82
} ) ;
83
83
84
84
testUtils . testAll ( 'vRandMember on non-existent key' , async client => {
@@ -91,8 +91,8 @@ describe('VRANDMEMBER', () => {
91
91
assert . ok ( Array . isArray ( resultWithCount ) ) ;
92
92
assert . equal ( resultWithCount . length , 0 ) ;
93
93
} , {
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 ] }
96
96
} ) ;
97
97
} ) ;
98
98
@@ -109,7 +109,8 @@ describe('VRANDMEMBER', () => {
109
109
...GLOBAL . SERVERS . OPEN ,
110
110
clientOptions : {
111
111
RESP : 3
112
- }
112
+ } ,
113
+ minimumDockerVersion : [ 8 , 0 ]
113
114
} ) ;
114
115
115
116
testUtils . testWithClient ( 'vRandMember with positive count - returns distinct elements' , async client => {
@@ -133,7 +134,8 @@ describe('VRANDMEMBER', () => {
133
134
...GLOBAL . SERVERS . OPEN ,
134
135
clientOptions : {
135
136
RESP : 3
136
- }
137
+ } ,
138
+ minimumDockerVersion : [ 8 , 0 ]
137
139
} ) ;
138
140
139
141
testUtils . testWithClient ( 'vRandMember with negative count - allows duplicates' , async client => {
@@ -152,7 +154,8 @@ describe('VRANDMEMBER', () => {
152
154
...GLOBAL . SERVERS . OPEN ,
153
155
clientOptions : {
154
156
RESP : 3
155
- }
157
+ } ,
158
+ minimumDockerVersion : [ 8 , 0 ]
156
159
} ) ;
157
160
158
161
testUtils . testWithClient ( 'vRandMember count exceeds set size - returns entire set' , async client => {
@@ -170,7 +173,8 @@ describe('VRANDMEMBER', () => {
170
173
...GLOBAL . SERVERS . OPEN ,
171
174
clientOptions : {
172
175
RESP : 3
173
- }
176
+ } ,
177
+ minimumDockerVersion : [ 8 , 0 ]
174
178
} ) ;
175
179
176
180
testUtils . testWithClient ( 'vRandMember on non-existent key' , async client => {
@@ -186,7 +190,8 @@ describe('VRANDMEMBER', () => {
186
190
...GLOBAL . SERVERS . OPEN ,
187
191
clientOptions : {
188
192
RESP : 3
189
- }
193
+ } ,
194
+ minimumDockerVersion : [ 8 , 0 ]
190
195
} ) ;
191
196
} ) ;
192
197
} ) ;
0 commit comments