From 8bc5391c881ddad86e660e86d24dbfd632056d28 Mon Sep 17 00:00:00 2001 From: Ralf Kistner Date: Thu, 22 Aug 2024 11:32:06 +0200 Subject: [PATCH] Fix outdated test. --- packages/web/tests/bucket_storage.test.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/web/tests/bucket_storage.test.ts b/packages/web/tests/bucket_storage.test.ts index 4dda6dc8..d609fd32 100644 --- a/packages/web/tests/bucket_storage.test.ts +++ b/packages/web/tests/bucket_storage.test.ts @@ -338,8 +338,7 @@ describe('Bucket Storage', () => { OplogEntry.fromRow({ op_id: '1', op: new OpType(OpTypeEnum.MOVE).toJSON(), - checksum: 1, - data: '{"target": "3"}' + checksum: 1 }) ], false @@ -347,14 +346,6 @@ describe('Bucket Storage', () => { ]) ); - // 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({