File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -581,7 +581,11 @@ describe('Testing of the collections.create method', () => {
581581 expect ( response . multiTenancy . enabled ) . toEqual ( true ) ;
582582
583583 expect ( response . replication . asyncEnabled ) . toEqual ( false ) ;
584- expect ( response . replication . deletionStrategy ) . toEqual < ReplicationDeletionStrategy > ( 'DeleteOnConflict' ) ;
584+ expect ( response . replication . deletionStrategy ) . toEqual < ReplicationDeletionStrategy > (
585+ ( await cluster . getWeaviateVersion ( ) . then ( ( ver ) => ver . isLowerThan ( 1 , 25 , 0 ) ) )
586+ ? 'NoAutomatedResolution'
587+ : 'DeleteOnConflict'
588+ ) ;
585589 expect ( response . replication . factor ) . toEqual ( 2 ) ;
586590
587591 const indexConfig = response . vectorizers . default . indexConfig as VectorIndexConfigHNSW ;
@@ -593,7 +597,9 @@ describe('Testing of the collections.create method', () => {
593597 expect ( indexConfig . dynamicEfMin ) . toEqual ( 10 ) ;
594598 expect ( indexConfig . ef ) . toEqual ( - 2 ) ;
595599 expect ( indexConfig . efConstruction ) . toEqual ( 100 ) ;
596- expect ( indexConfig . filteringStrategy ) . toEqual ( 'acorn' ) ;
600+ expect ( indexConfig . filteringStrategy ) . toEqual (
601+ ( await cluster . getWeaviateVersion ( ) . then ( ( ver ) => ver . isLowerThan ( 1 , 27 , 0 ) ) ) ? 'sweeping' : 'acorn'
602+ ) ;
597603 expect ( indexConfig . flatSearchCutoff ) . toEqual ( 41000 ) ;
598604 expect ( indexConfig . maxConnections ) . toEqual ( 72 ) ;
599605 expect ( quantizer . bitCompression ) . toEqual ( true ) ;
You can’t perform that action at this time.
0 commit comments