Skip to content

Commit 3b1fbd7

Browse files
committed
Fix tests for BC with unsupported features
1 parent 0eeccdf commit 3b1fbd7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/collections/integration.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)