Skip to content

Commit

Permalink
Fix outdated test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkistner committed Aug 22, 2024
1 parent 3ad6be3 commit 8bc5391
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/web/tests/bucket_storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,23 +338,14 @@ describe('Bucket Storage', () => {
OplogEntry.fromRow({
op_id: '1',
op: new OpType(OpTypeEnum.MOVE).toJSON(),
checksum: 1,
data: '{"target": "3"}'
checksum: 1
})
],
false
)
])
);

// At this point, we have target: 3, but don't have that op yet, so we cannot sync.
const result = await bucketStorage.syncLocalDatabase({
last_op_id: '2',
buckets: [{ bucket: 'bucket1', checksum: 1 }]
});
// Checksum passes, but we don't have a complete checkpoint
expect(result).deep.equals({ ready: false, checkpointValid: true });

await bucketStorage.saveSyncData(new SyncDataBatch([new SyncDataBucket('bucket1', [putAsset1_3], false)]));

await syncLocalChecked({
Expand Down

0 comments on commit 8bc5391

Please sign in to comment.