File tree 1 file changed +6
-12
lines changed
packages/service-core-tests/src/tests
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -1676,16 +1676,13 @@ bucket_definitions:
1676
1676
} ) ;
1677
1677
1678
1678
let result2 = await iter . next ( ) ;
1679
- if ( result2 . value ?. base ?. lsn == '5/0' ) {
1680
- // Events could arrive in a different order in some cases - this caters for it
1681
- result2 = await iter . next ( ) ;
1682
- }
1683
1679
expect ( result2 ) . toMatchObject ( {
1684
1680
done : false ,
1685
1681
value : {
1686
1682
base : {
1687
- checkpoint : 0n ,
1688
- lsn : '6/0'
1683
+ checkpoint : 0n
1684
+ // can be 5/0 or 6/0 - actual value not relevant for custom write checkpoints
1685
+ // lsn: '6/0'
1689
1686
} ,
1690
1687
writeCheckpoint : 6n
1691
1688
}
@@ -1702,16 +1699,13 @@ bucket_definitions:
1702
1699
} ) ;
1703
1700
1704
1701
let result3 = await iter . next ( ) ;
1705
- if ( result3 . value ?. base ?. lsn == '6/0' ) {
1706
- // Events could arrive in a different order in some cases - this caters for it
1707
- result3 = await iter . next ( ) ;
1708
- }
1709
1702
expect ( result3 ) . toMatchObject ( {
1710
1703
done : false ,
1711
1704
value : {
1712
1705
base : {
1713
- checkpoint : 0n ,
1714
- lsn : '7/0'
1706
+ checkpoint : 0n
1707
+ // can be 5/0, 6/0 or 7/0 - actual value not relevant for custom write checkpoints
1708
+ // lsn: '7/0'
1715
1709
} ,
1716
1710
writeCheckpoint : 7n
1717
1711
}
You can’t perform that action at this time.
0 commit comments