File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/service-core-tests/src/tests Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -202,8 +202,8 @@ bucket_definitions:
202202 {
203203 checksum : 4243212114 ,
204204 object_id : 't2' ,
205- op : 'PUT' ,
206- op_id : '4'
205+ op : 'PUT'
206+ // op_id is 4 or 5, depending on storage implementation
207207 }
208208 ] ) ;
209209
@@ -221,7 +221,7 @@ bucket_definitions:
221221 bucketStorage . clearChecksumCache ( ) ;
222222 const checksumAfter = await bucketStorage . getChecksums ( checkpoint , [ 'global[]' ] ) ;
223223
224- expect ( batchAfter . targetOp ) . toEqual ( 4n ) ;
224+ expect ( batchAfter . targetOp ) . toBeLessThanOrEqual ( checkpoint ) ;
225225 expect ( dataAfter ) . toMatchObject ( [
226226 {
227227 checksum : - 1778190028 ,
@@ -231,8 +231,8 @@ bucket_definitions:
231231 {
232232 checksum : 4243212114 ,
233233 object_id : 't2' ,
234- op : 'PUT' ,
235- op_id : '4'
234+ op : 'PUT'
235+ // op_id is 4 or 5, depending on storage implementation
236236 }
237237 ] ) ;
238238 expect ( checksumAfter . get ( 'global[]' ) ) . toEqual ( {
@@ -316,12 +316,12 @@ bucket_definitions:
316316 await bucketStorage . clearChecksumCache ( ) ;
317317 const checksumAfter = await bucketStorage . getChecksums ( checkpoint2 , [ 'global[]' ] ) ;
318318
319- expect ( batchAfter . targetOp ) . toEqual ( 4n ) ;
319+ expect ( batchAfter . targetOp ) . toEqual ( 5n ) ;
320320 expect ( dataAfter ) . toMatchObject ( [
321321 {
322322 checksum : 1874612650 ,
323323 op : 'CLEAR' ,
324- op_id : '4 '
324+ op_id : '5 '
325325 }
326326 ] ) ;
327327 expect ( checksumAfter . get ( 'global[]' ) ) . toEqual ( {
You can’t perform that action at this time.
0 commit comments