@@ -179,9 +179,10 @@ describe("batch importing", () => {
179179 } ,
180180 ] ;
181181
182- it ( "imports them" , ( ) => {
182+ it ( "imports them with consistency level " , ( ) => {
183183 client . batch
184184 . objectsBatcher ( )
185+ . withConsistencyLevel ( weaviate . replication . ConsistencyLevel . ONE )
185186 . withObjects ( [ toImport [ 0 ] , toImport [ 1 ] ] )
186187 . do ( )
187188 . then ( )
@@ -215,7 +216,7 @@ describe("batch importing", () => {
215216 } )
216217 } ) ;
217218
218- it ( "imports the refs with raw objects" , ( ) => {
219+ it ( "imports the refs with raw objects and consistency level " , ( ) => {
219220 return client . batch
220221 . referencesBatcher ( )
221222 . withReference ( {
@@ -226,6 +227,7 @@ describe("batch importing", () => {
226227 from : `weaviate://localhost/${ thingClassName } /${ thingIds [ 1 ] } /refProp` ,
227228 to : `weaviate://localhost/${ otherThingClassName } /${ otherThingIds [ 1 ] } ` ,
228229 } )
230+ . withConsistencyLevel ( weaviate . replication . ConsistencyLevel . ALL )
229231 . do ( )
230232 . then ( ( res ) => {
231233 res . forEach ( ( elem ) => {
@@ -429,7 +431,7 @@ describe("batch deleting", () => {
429431 } )
430432 )
431433
432- it ( "batch deletes with default dryRun" , ( ) => {
434+ it ( "batch deletes with default dryRun and consistency level " , ( ) => {
433435 const inAMinute = "" + ( new Date ( ) . getTime ( ) + 60 * 1000 ) ;
434436 return client . batch
435437 . objectsBatchDeleter ( )
@@ -440,6 +442,7 @@ describe("batch deleting", () => {
440442 path : [ "_creationTimeUnix" ]
441443 } )
442444 . withOutput ( weaviate . batch . DeleteOutput . VERBOSE )
445+ . withConsistencyLevel ( weaviate . replication . ConsistencyLevel . QUORUM )
443446 . do ( )
444447 . then ( result => {
445448 expect ( result . dryRun ) . toBe ( false ) ;
0 commit comments