File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/client/lib/cluster Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ describe('Cluster', () => {
23
23
} , GLOBAL . CLUSTERS . OPEN ) ;
24
24
25
25
testUtils . testWithCluster ( 'connect should throw if already connected' , async cluster => {
26
- assert . rejects ( cluster . connect ( ) ) ;
26
+ await assert . rejects ( cluster . connect ( ) ) ;
27
27
} , GLOBAL . CLUSTERS . OPEN ) ;
28
28
29
29
testUtils . testWithCluster ( 'multi' , async cluster => {
@@ -165,6 +165,10 @@ describe('Cluster', () => {
165
165
}
166
166
} ) ;
167
167
168
+ testUtils . testWithCluster ( 'should throw CROSSSLOT error' , async cluster => {
169
+ await assert . rejects ( cluster . mGet ( [ 'a' , 'b' ] ) ) ;
170
+ } , GLOBAL . CLUSTERS . OPEN ) ;
171
+
168
172
describe ( 'minimizeConnections' , ( ) => {
169
173
testUtils . testWithCluster ( 'false' , async cluster => {
170
174
for ( const master of cluster . masters ) {
You can’t perform that action at this time.
0 commit comments